- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testConstructorWithLongKey (0.41 sec)
-
src/test/java/jcifs/smb1/util/HMACT64Test.java
void testConstructorWithNormalKey() { // Test constructor with a normal length key HMACT64 hmac = new HMACT64(TEST_KEY); assertNotNull(hmac); } @Test void testConstructorWithLongKey() { // Test constructor with a key longer than BLOCK_LENGTH (64 bytes) // HMACT64 truncates keys at 64 bytes HMACT64 hmac = new HMACT64(LONG_TEST_KEY); assertNotNull(hmac); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.1K bytes - Viewed (0) -
src/test/java/jcifs/util/HMACT64Test.java
assertNotNull(hmac); verify(mockMd5, times(1)).reset(); verify(mockMd5, times(1)).update(any(byte[].class)); // Should update with ipad } } @Test void testConstructorWithLongKey() throws NoSuchAlgorithmException { // Test constructor with a key longer than BLOCK_LENGTH (64 bytes) try (MockedStatic<Crypto> mockedCrypto = mockStatic(Crypto.class)) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.6K bytes - Viewed (0)