Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 373 for byte (0.14 sec)

  1. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

        // KGS!@#$%
        private static final byte[] S8 = {
            (byte)0x4b, (byte)0x47, (byte)0x53, (byte)0x21,
            (byte)0x40, (byte)0x23, (byte)0x24, (byte)0x25
        };
        /* Accepts key multiple of 7
         * Returns enc multiple of 8
         * Multiple is the same like: 21 byte key gives 24 byte result
         */
        private static void E( byte[] key, byte[] data, byte[] e ) {
            byte[] key7 = new byte[7];
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 22.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/PACTest.java

        private static void verifyArcfourHMAC ( int usage, String expect, String key, byte[] bytes ) throws GeneralSecurityException {
            byte[] keybytes = Hex.decode(key);
            byte[] javaChecksum;
            if ( keybytes.length == 16 ) {
                javaChecksum = sun.security.krb5.internal.crypto.ArcFourHmac.calculateChecksum(keybytes, usage, bytes, 0, bytes.length);
    
            }
            else {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Oct 01 12:01:17 GMT 2023
    - 22.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/netbios/SessionServicePacket.java

    
        static void writeInt2 ( int val, byte[] dst, int dstIndex ) {
            dst[ dstIndex++ ] = (byte) ( ( val >> 8 ) & 0xFF );
            dst[ dstIndex ] = (byte) ( val & 0xFF );
        }
    
    
        static void writeInt4 ( int val, byte[] dst, int dstIndex ) {
            dst[ dstIndex++ ] = (byte) ( ( val >> 24 ) & 0xFF );
            dst[ dstIndex++ ] = (byte) ( ( val >> 16 ) & 0xFF );
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 4.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/pac/PacMac.java

        }
    
    
        public static byte[] calculateMacHMACAES ( int usage, KerberosKey baseKey, byte[] input ) throws GeneralSecurityException {
            byte[] cst = new byte[] {
                (byte) ( ( usage >> 24 ) & 0xFF ), (byte) ( ( usage >> 16 ) & 0xFF ), (byte) ( ( usage >> 8 ) & 0xFF ), (byte) ( usage & 0xFF ),
                (byte) 0x99
            };
    
            byte[] output = new byte[12];
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/pac/kerberos/KerberosEncData.java

         */
        private static byte[] decryptRC4 ( byte[] data, Key key ) throws GeneralSecurityException, NoSuchAlgorithmException, NoSuchPaddingException,
                InvalidKeyException, IllegalBlockSizeException, BadPaddingException {
            Cipher cipher;
            byte[] decrypt;
            byte[] code = new byte[4];
            Encdec.enc_uint32le(2, code, 0);
            byte[] codeHmac = getHmac(code, key.getEncoded());
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Oct 02 12:02:06 GMT 2023
    - 11.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/util/Crypto.java

        }
    
    
        /**
         * @param key
         *            7-byte "raw" DES key
         * @return 8-byte DES key with parity
         */
        static byte[] des7to8 ( byte[] key ) {
            byte key8[] = new byte[8];
            key8[ 0 ] = (byte) ( key[ 0 ] & 0xFE );
            key8[ 1 ] = (byte) ( ( key[ 0 ] << 7 ) | ( ( key[ 1 ] & 0xFF ) >>> 1 ) );
            key8[ 2 ] = (byte) ( ( key[ 1 ] << 6 ) | ( ( key[ 2 ] & 0xFF ) >>> 2 ) );
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Aug 17 17:34:29 GMT 2021
    - 5.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbComTreeConnectAndX.java

                    password = new byte[(session.auth.password.length() + 1) * 2];
                    passwordLength = writeString( session.auth.password, password, 0 );
                }
            } else {
                // no password in tree connect
                passwordLength = 1;
            }
    
            dst[dstIndex++] = disconnectTid ? (byte)0x01 : (byte)0x00;
            dst[dstIndex++] = (byte)0x00;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 6.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java

                dstIndex += 2;
            }
            dst[dstIndex++] = (byte)0x00;
            dst[dstIndex++] = (byte)0x00;
            dst[dstIndex++] = (byte)0x00;
            dst[dstIndex++] = (byte)0x00;
            writeInt4( capabilities, dst, dstIndex );
            dstIndex += 4;
    
            return dstIndex - start;
        }
        int writeBytesWireFormat( byte[] dst, int dstIndex ) {
            int start = dstIndex;
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 7.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java

            tmp = null;
        }
    
    /**
     * Writes the specified byte to this file output stream.
     *
     * @throws IOException if a network error occurs
     */
    
        public void write( int b ) throws IOException {
            tmp[0] = (byte)b;
            write( tmp, 0, 1 );
        }
    
    /**
     * Writes b.length bytes from the specified byte array to this
     * file output stream.
     *
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 9.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/info/Smb2QueryInfoResponse.java

        public static final int OVERHEAD = Smb2Constants.SMB2_HEADER_LENGTH + 8;
    
        private byte expectInfoType;
        private byte expectInfoClass;
        private Decodable info;
    
    
        /**
         * @param config
         * @param expectInfoType
         * @param expectInfoClass
         */
        public Smb2QueryInfoResponse ( Configuration config, byte expectInfoType, byte expectInfoClass ) {
            super(config);
            this.expectInfoType = expectInfoType;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Nov 13 15:13:49 GMT 2021
    - 6K bytes
    - Viewed (0)
Back to top