Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 413 for Nonce (0.02 sec)

  1. src/main/java/org/codelibs/fess/sso/aad/AzureAdAuthenticator.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: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 28 09:13:08 UTC 2025
    - 37.3K bytes
    - Viewed (0)
  2. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  3. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  4. 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() {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  5. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  6. 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)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 16.8K bytes
    - Viewed (0)
  7. docs/debugging/inspect/decrypt-v1.go

    	}
    
    	stream, err := sio.AES_256_GCM.Stream(key)
    	if err != nil {
    		return err
    	}
    	// Zero nonce, we only use each key once, and 32 bytes is plenty.
    	nonce := make([]byte, stream.NonceSize())
    	encr := stream.DecryptReader(r, nonce, nil)
    	_, err = io.Copy(w, encr)
    	if err == nil {
    		fmt.Println(okMsg)
    	}
    	return err
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Apr 11 21:22:47 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  8. docs/security/README.md

    ##### Figure 1 - Secure Channel construction
    
    ```
    plaintext   := chunk_0          ||       chunk_1          ||       chunk_2          ||       ...
                     |                         |                         |
                     |                         |                         |
                   AEAD <- key, nonce + 0    AEAD <- key, nonce + 1    AEAD <- key, nonce + 2    ...
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Feb 26 09:25:50 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  9. 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 {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/NtlmUtil.java

         * @param password
         *            The user's password.
         * @param challenge
         *            The server challenge.
         * @param clientChallenge
         *            The client challenge (nonce).
         * @return the calculated response
         * @throws GeneralSecurityException if a cryptographic error occurs
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
Back to top