- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 60 for salt (0.02 sec)
-
src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java
} @Test @DisplayName("Should return salt correctly") void testGetSalt() { int[] hashAlgos = { 0x01 }; byte[] salt = { 0x01, 0x02, 0x03, 0x04 }; PreauthIntegrityNegotiateContext context = new PreauthIntegrityNegotiateContext(mockConfig, hashAlgos, salt); assertArrayEquals(salt, context.getSalt());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 34K bytes - Viewed (0) -
src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java
@Test @DisplayName("Test preauth salt generation") public void testPreauthSaltGeneration() { byte[] salt1 = preauthService.generatePreauthSalt(); byte[] salt2 = preauthService.generatePreauthSalt(); assertNotNull(salt1); assertNotNull(salt2); assertEquals(32, salt1.length); // 32 bytes as per SMB 3.1.1 spec assertEquals(32, salt2.length);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/util/SecureCredentialStorageTest.java
} finally { storage2.close(); } // Clean up Arrays.fill(plaintext, '\0'); } @Test public void testSaltRetrieval() throws Exception { byte[] salt = storage.getSalt(); assertNotNull(salt, "Salt should not be null"); assertEquals(32, salt.length, "Salt should be 32 bytes");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12.7K bytes - Viewed (0) -
src/main/java/jcifs/smb/PreauthIntegrityService.java
} /** * Generates a new preauth salt for SMB 3.1.1 negotiation. * * @return a cryptographically secure random salt */ public byte[] generatePreauthSalt() { byte[] salt = new byte[SALT_SIZE]; secureRandom.nextBytes(salt); log.debug("Generated new preauth salt of {} bytes", salt.length); return salt; } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java
int[] hashAlgos = { 1, 2 }; byte[] salt = new byte[8]; Arrays.fill(salt, (byte) 0xFF); context = new PreauthIntegrityNegotiateContext(mockConfig, hashAlgos, salt); // Encode at position 100 int encoded = context.encode(buffer, 100); assertEquals(context.size(), encoded); // Verify salt is at correct position
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0) -
src/main/java/jcifs/util/SecureCredentialStorage.java
} if (salt == null || salt.length != SALT_SIZE) { throw new IllegalArgumentException("Invalid salt"); } this.salt = salt.clone(); this.masterKey = deriveKey(masterPassword, this.salt); // Clear the master password after use Arrays.fill(masterPassword, '\0'); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java
when(mockConfig.getMachineId()).thenReturn(testMachineId); when(mockConfig.getRandom()).thenReturn(mockRandom); when(mockContext.getConfig()).thenReturn(mockConfig); // Mock random for predictable salt generation doAnswer(invocation -> { byte[] buffer = invocation.getArgument(0); System.arraycopy(testSalt, 0, buffer, 0, Math.min(buffer.length, testSalt.length)); return null;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java
ctxOffset += 8; // Skip reserved // Hash algorithm count and salt length SMBUtil.writeInt2(1, buffer, ctxOffset); SMBUtil.writeInt2(32, buffer, ctxOffset + 2); SMBUtil.writeInt2(PreauthIntegrityNegotiateContext.HASH_ALGO_SHA512, buffer, ctxOffset + 4); ctxOffset += 6; // Salt (32 bytes) for (int i = 0; i < 32; i++) { buffer[ctxOffset + i] = (byte) i;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 32.5K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.2.md
* GCI: Add two GCI specific metadata pairs ([#25105](https://github.com/kubernetes/kubernetes/pull/25105), [@andyzheng0831](https://github.com/andyzheng0831)) * Add an entry to the salt config to allow Debian jessie on GCE. ([#25123](https://github.com/kubernetes/kubernetes/pull/25123), [@jlewi](https://github.com/jlewi))
Registered: Fri Sep 05 09:05:11 UTC 2025 - Last Modified: Fri Dec 04 06:36:19 UTC 2020 - 41.4K bytes - Viewed (0)