- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 203 for Nonce (0.06 sec)
-
src/main/java/jcifs/internal/smb2/Smb2TransformHeader.java
java.util.Arrays.fill(this.nonce, (byte) 0); System.arraycopy(nonce, 0, this.nonce, 0, 12); } else if (nonce.length == 16) { // For GCM cipher, use full 16-byte nonce System.arraycopy(nonce, 0, this.nonce, 0, 16); } else { throw new IllegalArgumentException("Nonce must be 12 bytes (CCM) or 16 bytes (GCM)"); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
return metrics; } /** * Generate a unique nonce for encryption following SMB3 specification. * Uses SMB3-compliant nonce generation with guaranteed uniqueness. * * @return nonce appropriate for the dialect (16 bytes for GCM, 12 bytes for CCM) */ public byte[] generateNonce() { final byte[] nonce = new byte[isGCMCipher() ? 16 : 12]; if (isGCMCipher()) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 35.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/sso/entraid/EntraIdAuthenticator.java
} final String nonce = (String) claimsSet.getClaim("nonce"); if (logger.isDebugEnabled()) { logger.debug("nonce={}", nonce); } if (StringUtils.isEmpty(nonce) || !nonce.equals(stateData.getNonce())) { throw new SsoLoginException("could not validate nonce"); }Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Sat Dec 13 02:21:17 UTC 2025 - 56.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
byte[] nonce = context.generateNonce(); assertNotNull(nonce, "Nonce should not be null"); assertTrue(nonce.length > 0, "Nonce should have length > 0"); // Convert to string for uniqueness check String nonceStr = Arrays.toString(nonce); assertFalse(nonces.contains(nonceStr), "Nonce should be unique"); nonces.add(nonceStr);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 44.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java
}); } @Test @DisplayName("Should handle null nonce") void testNullNonce() { // When/Then assertThrows(NullPointerException.class, () -> { transformHeader.setNonce(null); }); } @Test @DisplayName("Should handle invalid nonce length") void testInvalidNonceLength() { // GivenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmUtil.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.1K bytes - Viewed (0) -
README.md
- **Pre-Authentication Integrity**: SMB 3.1.1 PAI for preventing downgrade attacks - **Automatic Detection**: Encryption automatically enabled when servers require it - **Secure Key Management**: Proper key derivation and nonce generation ### Core Features - **Per-context configuration**: No global state, each context encapsulates configuration - **Authentication**: NTLM, Kerberos, SPNEGO unified subsystem
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 09:24:52 UTC 2025 - 6.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java
* @param user The username. * @param password The user's password. * @param challenge The server challenge. * @param clientChallenge The client challenge (nonce). * @return the LMv2 response bytes */ public static byte[] getLMv2Response(final String domain, final String user, final String password, final byte[] challenge, final byte[] clientChallenge) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 26.7K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.28.md
### Feature
Registered: Fri Dec 26 09:05:12 UTC 2025 - Last Modified: Fri Sep 05 03:47:18 UTC 2025 - 456.9K bytes - Viewed (1) -
src/test/java/jcifs/dcerpc/DcerpcSecurityProviderTest.java
verify(dcerpcSecurityProvider, times(1)).wrap(mockNdrBuffer); } @Test void testUnwrapMethodIsCalled() throws DcerpcException { // Test that the unwrap method can be called without throwing an exception dcerpcSecurityProvider.unwrap(mockNdrBuffer); // Verify that the unwrap method was called exactly once with the mockNdrBuffer
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.5K bytes - Viewed (0)