Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 63 for key (0.14 sec)

  1. 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)
  2. src/test/java/jcifs/tests/PACTest.java

         * @param data
         * @param key
         * @throws GeneralSecurityException
         */
        private static void verifyAESMAC ( int usage, String expect, String data, String key ) throws GeneralSecurityException {
            verifyAESHMAC(usage, expect, key, Hex.decode(data));
        }
    
    
        private static void verifyArcfourHMAC ( int usage, String expect, String data, String key ) throws GeneralSecurityException {
    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/pac/PacMac.java

                if ( type == PacSignature.KERB_CHECKSUM_HMAC_MD5 ) {
                    KerberosKey key = keys.get(PacSignature.ETYPE_ARCFOUR_HMAC);
                    if ( key == null ) {
                        throw new PACDecodingException("Missing key");
                    }
                    return calculateMacArcfourHMACMD5(usage, key, data);
                }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/pac/kerberos/KerberosEncData.java

        public static byte[] decrypt ( byte[] data, Key key, int type ) throws GeneralSecurityException {
            Cipher cipher = null;
            byte[] decrypt = null;
    
            switch ( type ) {
            case KerberosConstants.DES_ENC_TYPE:
                decrypt = decryptDES(data, key, cipher);
                break;
            case KerberosConstants.RC4_ENC_TYPE:
                decrypt = decryptRC4(data, key);
                break;
            default:
    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)
  5. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

            Map map = new HashMap();
            String key = connection.getHeaderFieldKey(0);
            String value = connection.getHeaderField(0);
            for (int i = 1; key != null || value != null; i++) {
                List values = (List) map.get(key);
                if (values == null) {
                    values = new ArrayList();
                    map.put(key, values);
                }
                values.add(value);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 20.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/util/RC4.java

        int i, j;
    
        public RC4()
        {
        }
        public RC4(byte[] key)
        {
            init(key, 0, key.length);
        }
    
        public void init(byte[] key, int ki, int klen)
        {
            s = new byte[256];
    
            for (i = 0; i < 256; i++)
                s[i] = (byte)i;
    
            for (i = j = 0; i < 256; i++) {
                j = (j + key[ki + i % klen] + s[i]) & 0xff;
                byte t = s[i];
                s[i] = s[j];
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 1.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/DfsImpl.java

                }
                this.referrals = refs;
            }
            String key = "\\" + domain + "\\" + root;
            if ( !path.equals("\\") ) {
                key += path;
            }
    
            key = key.toLowerCase(Locale.ROOT);
    
            Iterator<String> iter = refs.map.keySet().iterator();
            int searchLen = key.length();
            while ( iter.hasNext() ) {
                String cachedKey = iter.next();
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:07:29 GMT 2023
    - 29.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

        };
        /* 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];
            byte[] e8 = new byte[8];
    
            for( int i = 0; i < key.length / 7; i++ ) {
                System.arraycopy( key, i * 7, key7, 0, 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)
  9. src/main/java/jcifs/dcerpc/DcerpcHandle.java

                    if ( ch == '=' ) {
                        key = str.substring(mark, si).trim();
                        mark = si + 1;
                    }
                    else if ( ch == ',' || ch == ']' ) {
                        String val = str.substring(mark, si).trim();
                        mark = si + 1;
                        if ( key == null )
                            key = "endpoint";
                        if ( binding != null ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jun 30 10:11:57 GMT 2019
    - 12.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/pac/kerberos/KerberosTicket.java

                    for ( KerberosKey key : keys ) {
                        keysByAlgo.put(key.getKeyType(), key);
                    }
    
                    KerberosKey serverKey = keysByAlgo.get(encType.getValue().intValue());
                    if ( keysByAlgo.isEmpty() || serverKey == null ) {
                        throw new PACDecodingException("Kerberos key not found for eType " + encType.getValue());
                    }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Oct 02 12:02:06 GMT 2023
    - 5.7K bytes
    - Viewed (0)
Back to top