- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for HMac (0.01 sec)
-
src/main/java/jcifs/pac/PacMac.java
* ARCFOUR-HMAC-MD5 and AES-based HMAC algorithms. */ public class PacMac { /** * Private constructor to prevent instantiation of utility class. */ private PacMac() { // Utility class } /** * */ private static final String HMAC_KEY = "HMAC";Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 9K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacSignature.java
* supporting various checksum algorithms including HMAC-MD5 and HMAC-SHA1 with AES. */ public class PacSignature { /** * Kerberos checksum type for HMAC-MD5 (ARCFOUR-HMAC). */ public static final int KERB_CHECKSUM_HMAC_MD5 = 0xFFFFFF76; /** * Kerberos checksum type for HMAC-SHA1-96 with AES-128. */ public static final int HMAC_SHA1_96_AES128 = 0x0000000F;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.4K bytes - Viewed (0) -
src/test/java/jcifs/util/CryptoTest.java
} @Test @DisplayName("Should calculate HMAC-T64 correctly") void testHMACT64() { // Given byte[] key = "secret".getBytes(); byte[] data = "Hello World".getBytes(); // When MessageDigest hmac = Crypto.getHMACT64(key); byte[] result = hmac.digest(data); // Then assertNotNull(result);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/HMACT64.java
throw new IllegalStateException(ex.getMessage()); } engineReset(); } private HMACT64(final HMACT64 hmac) throws CloneNotSupportedException { super("HMACT64"); this.ipad = hmac.ipad; this.opad = hmac.opad; this.md5 = (MessageDigest) hmac.md5.clone(); } @Override public Object clone() { try { return new HMACT64(this);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 3.6K bytes - Viewed (0) -
src/main/java/jcifs/util/HMACT64.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 3.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb3KeyDerivation.java
import org.bouncycastle.crypto.DerivationParameters; import org.bouncycastle.crypto.digests.SHA256Digest; import org.bouncycastle.crypto.generators.KDFCounterBytesGenerator; import org.bouncycastle.crypto.macs.HMac; import org.bouncycastle.crypto.params.KDFCounterParameters; /** * SMB3 SP800-108 Counter Mode Key Derivation * * @author mbechler * */ public final class Smb3KeyDerivation {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.5K bytes - Viewed (0) -
src/main/java/jcifs/pac/kerberos/KerberosConstants.java
/** DES encryption type identifier */ int DES_ENC_TYPE = 3; /** RC4 encryption type identifier */ int RC4_ENC_TYPE = 23; /** RC4 algorithm name */ String RC4_ALGORITHM = "ARCFOUR"; /** HMAC algorithm name */ String HMAC_ALGORITHM = "HmacMD5"; /** Size of confounder in bytes */ int CONFOUNDER_SIZE = 8; /** Size of checksum in bytes */ int CHECKSUM_SIZE = 16;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.9K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacTest.java
import org.mockito.MockedStatic; class PacTest { private Map<Integer, KerberosKey> keys; @BeforeEach void setUp() { keys = new HashMap<>(); // Use ARCFOUR-HMAC encryption type (23) which matches KERB_CHECKSUM_HMAC_MD5 KerberosKey serverKey = new KerberosKey(new KerberosPrincipal("******@****.***"), "serverKey1234567".getBytes(), PacSignature.ETYPE_ARCFOUR_HMAC, 1);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/CIFSUnsupportedCryptoExceptionTest.java
@ValueSource(strings = { "AES encryption not supported", "Missing Bouncy Castle provider", "Invalid key length for AES-128", "RC4 cipher not available in this JVM", "DES encryption is deprecated and not supported", "HMAC-SHA256 algorithm not found", "RSA key generation failed: key size not supported" }) void testMessageConstructorWithCryptoMessages(String message) { // Given & WhenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacMacTest.java
keys.put(PacSignature.ETYPE_ARCFOUR_HMAC, hmacKey); keys.put(PacSignature.ETYPE_AES128_CTS_HMAC_SHA1_96, aes128Key); keys.put(PacSignature.ETYPE_AES256_CTS_HMAC_SHA1_96, aes256Key); // Test HMAC-MD5 byte[] mac1 = PacMac.calculateMac(PacSignature.KERB_CHECKSUM_HMAC_MD5, keys, TEST_DATA); assertNotNull(mac1); assertEquals(16, mac1.length); // Test AES128
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7.1K bytes - Viewed (0)