- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for calculateMacArcfourHMACMD5 (0.16 sec)
-
src/test/java/jcifs/pac/PacMacTest.java
SecretKeySpec key = new SecretKeySpec(new byte[16], "ARCFOUR"); byte[] mac = PacMac.calculateMacArcfourHMACMD5(3, key, TEST_DATA); assertNotNull(mac); assertEquals(16, mac.length); // Test with a different key usage byte[] mac2 = PacMac.calculateMacArcfourHMACMD5(9, key, TEST_DATA); assertNotNull(mac2); assertEquals(16, mac2.length);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7.1K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacMac.java
* @param data the data to calculate the MAC for * @return the calculated MAC bytes * @throws GeneralSecurityException if cryptographic operations fail */ public static byte[] calculateMacArcfourHMACMD5(int keyusage, Key key, byte[] data) throws GeneralSecurityException { int ms_usage = mapArcfourMD5KeyUsage(keyusage); Mac mac = Mac.getInstance("HmacMD5");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 9K bytes - Viewed (0)