- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 243 for Nonce (0.1 seconds)
-
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()) {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 35.5K bytes - Click Count (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() { // GivenCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.7K bytes - Click Count (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);
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 44.1K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/HeadersChallengesTest.kt
@Test fun testDigestChallengeWithStrictRfc2617Header() { val headers = Headers .Builder() .add( "WWW-Authenticate", "Digest realm=\"myrealm\", nonce=\"fjalskdflwejrlaskdfjlaskdjflaks" + "jdflkasdf\", qop=\"auth\", stale=\"FALSE\"", ).build() val challenges = headers.parseChallenges("WWW-Authenticate") assertThat(challenges.size).isEqualTo(1)
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 16.8K bytes - Click Count (0) -
docs/security/README.md
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Feb 26 09:25:50 GMT 2025 - 13.8K bytes - Click Count (0) -
cmd/object-multipart-handlers.go
return } copy(objectEncryptionKey[:], key) var nonce [12]byte tmp := sha256.Sum256(fmt.Append(nil, uploadID, partID)) copy(nonce[:], tmp[:12]) partEncryptionKey := objectEncryptionKey.DerivePartKey(uint32(partID)) encReader, err := sio.EncryptReader(reader, sio.Config{ Key: partEncryptionKey[:], Nonce: &nonce, }) if err != nil {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 07 16:13:09 GMT 2025 - 39.5K bytes - Click Count (1) -
internal/etag/etag.go
// return len(e) > 16 && !bytes.ContainsRune(e, '-') // // An encrypted ETag may contain some random bytes - e.g. // and nonce value. This nonce value may contain a '-' // just by its nature of being randomly generated. // The above implementation would incorrectly consider // such an ETag (with a nonce value containing a '-') // as non-encrypted. return len(e) >= 32 // We consider all ETags longer than 32 bytes as encrypted }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri May 16 14:27:42 GMT 2025 - 13.2K bytes - Click Count (0) -
src/main/java/jcifs/smb/NtlmUtil.java
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 15.1K bytes - Click Count (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) {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 26.7K bytes - Click Count (0) -
src/test/java/jcifs/util/HMACT64Test.java
HMACT64 hmac = new HMACT64(TEST_KEY); hmac.engineReset(); verify(mockMd5, times(2)).reset(); // Once in constructor, once in reset verify(mockMd5, times(2)).update(any(byte[].class)); // Once in constructor, once in reset } } @Test void testEngineGetDigestLength() throws NoSuchAlgorithmException { // Test engineGetDigestLength()
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.6K bytes - Click Count (0)