Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for mac (0.23 sec)

  1. src/main/java/jcifs/pac/PacMac.java

            int ms_usage = mapArcfourMD5KeyUsage(keyusage);
            Mac mac = Mac.getInstance("HmacMD5");
            MessageDigest md = MessageDigest.getInstance("MD5");
            mac.init(key);
            byte[] dk = mac.doFinal(MD5_CONSTANT);
            try {
                // little endian
                md.update((byte) ( ms_usage & 0xFF ));
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/PACTest.java

        private static void testJavaHMAC ( String key, byte[] bytes, String expect ) throws NoSuchAlgorithmException, InvalidKeyException {
            Mac m = Mac.getInstance("HmacMD5");
            m.init(new SecretKeySpec(Hex.decode(key), "HMAC"));
            byte[] mac = m.doFinal(bytes);
            checkBytes(Hex.decode(expect), mac);
        }
    
    
        @Test
        public void testRC4Checksum1 () throws PACDecodingException, 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/kerberos/KerberosEncData.java

            Key macKey = new SecretKeySpec(key.clone(), KerberosConstants.HMAC_ALGORITHM);
            Mac mac = Mac.getInstance(KerberosConstants.HMAC_ALGORITHM);
            mac.init(macKey);
            return mac.doFinal(data);
        }
    
    
        public String getUserRealm () {
            return this.userRealm;
        }
    
    
        public String getUserPrincipalName () {
    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)
  4. src/main/java/jcifs/NetbiosAddress.java

    
        /**
         * Retrieves the MAC address of the remote network interface. Samba returns all zeros.
         * 
         * @param tc
         *            context to use
         *
         * @return the MAC address as an array of six bytes
         * @throws UnknownHostException
         *             if the host cannot be resolved to
         *             determine the MAC address.
         */
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

            hmac.update(serverChallenge);
            hmac.update(clientData, offset, length);
            byte[] mac = hmac.digest();
            byte[] ret = new byte[mac.length + clientData.length];
            System.arraycopy(mac, 0, ret, 0, mac.length);
            System.arraycopy(clientData, 0, ret, mac.length, clientData.length);
            return ret;
        }
        public static byte[] getLMv2Response(
    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)
  6. src/main/java/jcifs/smb/NtlmUtil.java

            hmac.update(serverChallenge);
            hmac.update(clientData, offset, length);
            byte[] mac = hmac.digest();
            byte[] ret = new byte[mac.length + clientData.length];
            System.arraycopy(mac, 0, ret, 0, mac.length);
            System.arraycopy(clientData, 0, ret, mac.length, clientData.length);
            return ret;
        }
    
    
        /**
         * 
         * @param domain
         * @param username
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 12:07:20 GMT 2020
    - 9.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SigningDigest.java

                log.flush();
            }
            updates = 0;
    
            return b;
        }
    
        /**
         * Performs MAC signing of the SMB.  This is done as follows.
         * The signature field of the SMB is overwritted with the sequence number;
         * The MD5 digest of the MAC signing key + the entire SMB is taken;
         * The first 8 bytes of this are placed in the signature field.
         *
         * @param data The data.
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/util/Crypto.java

            }
            catch ( NoSuchAlgorithmException e ) {
                throw new CIFSUnsupportedCryptoException(e);
            }
        }
    
    
        /**
         * 
         * @param key
         * @return HMACT64 MAC
         */
        public static MessageDigest getHMACT64 ( byte[] key ) {
            return new HMACT64(key);
        }
    
    
        /**
         * 
         * @param key
         * @return RC4 cipher
         */
    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)
  9. src/main/java/jcifs/smb/NtlmContext.java

            byte[] seqBytes = new byte[4];
            SMBUtil.writeInt4(seqNum, seqBytes, 0);
    
            MessageDigest mac = Crypto.getHMACT64(sk);
            mac.update(seqBytes); // sequence
            mac.update(data); // data
            byte[] dgst = mac.digest();
            byte[] trunc = new byte[8];
            System.arraycopy(dgst, 0, trunc, 0, 8);
    
            if ( log.isDebugEnabled() ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 12:07:20 GMT 2020
    - 15.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/netbios/Lmhosts.java

                    }
    
                    name = new Name(tc.getConfig(), line.substring(i, j), 0x20, null);
                    addr = new NbtAddress(name, ip, false, NbtAddress.B_NODE, false, false, true, true, NbtAddress.UNKNOWN_MAC_ADDRESS);
                    if ( log.isDebugEnabled() ) {
                        log.debug("Adding " + name + " with addr " + addr);
                    }
                    this.table.put(name, addr);
                }
            }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 6.1K bytes
    - Viewed (0)
Back to top