Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for calculateMacArcfourHMACMD5 (0.15 sec)

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

        private static final byte[] ZERO_IV = new byte[] {
            0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
        };
    
    
        public static byte[] calculateMacArcfourHMACMD5 ( int keyusage, Key key, byte[] data ) throws GeneralSecurityException {
            int ms_usage = mapArcfourMD5KeyUsage(keyusage);
            Mac mac = Mac.getInstance("HmacMD5");
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/PACTest.java

            byte[] datab = data.getBytes(StandardCharsets.US_ASCII);
            byte[] javaMac = sun.security.krb5.internal.crypto.ArcFourHmac.calculateChecksum(keyb, usage, datab, 0, datab.length);
            byte[] mac = PacMac.calculateMacArcfourHMACMD5(usage, makeKey(keyb, 23), datab);
            checkBytes(javaMac, mac);
            checkBytes(Hex.decode(expect), javaMac);
            checkBytes(Hex.decode(expect), mac);
        }
    
    
        @Test
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Oct 01 12:01:17 UTC 2023
    - 22.3K bytes
    - Viewed (0)
Back to top