- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 22 for HMac (0.01 sec)
-
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/smb1/ntlmssp/Type3Message.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 24.1K 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/main/java/jcifs/ntlmssp/Type3Message.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 32.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmUtilTest.java
assertFalse(Arrays.equals(viaPassword, differentDomain), "Different domain should produce a different key"); } @Test @DisplayName("computeResponse: HMAC(server||clientData) prepended to clientData") void testComputeResponse_basic() { // Arrange byte[] key = hex("0102030405060708090A0B0C0D0E0F10"); byte[] serverChallenge = hex("1122334455667788");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12K bytes - Viewed (1) -
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/main/java/jcifs/internal/smb2/Smb2SigningDigest.java
m = Mac.getInstance(this.algorithmName, this.provider); } else { m = Mac.getInstance(this.algorithmName); } m.init(new SecretKeySpec(this.signingKey, "HMAC")); return m; } /** * {@inheritDoc} * * @see jcifs.internal.SMBSigningDigest#sign(byte[], int, int, jcifs.internal.CommonServerMessageBlock,
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.9K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/Hashing.java
* Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the * MD5 (128 hash bits) hash function and the given secret key. * * <p>If you are designing a new system that needs HMAC, prefer {@link #hmacSha256} or other * future-proof algorithms <a * href="https://datatracker.ietf.org/doc/html/rfc6151#section-2.3">over {@code hmacMd5}</a>. * * @param key the secret key
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 29.8K 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)