Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for generateSecureNonce (0.27 sec)

  1. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            Smb2EncryptionContext context = new Smb2EncryptionContext(1, DialectVersion.SMB311, testEncryptionKey, testDecryptionKey);
    
            // When
            byte[] nonce1 = context.generateSecureNonce();
            byte[] nonce2 = context.generateSecureNonce();
    
            // Then
            assertNotNull(nonce1, "First secure nonce should not be null");
            assertNotNull(nonce2, "Second secure nonce should not be null");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

         * such as during initial key exchange or session establishment.
         *
         * @return randomized nonce appropriate for the dialect
         */
        public byte[] generateSecureNonce() {
            final byte[] nonce = new byte[isGCMCipher() ? 16 : 12];
            this.secureRandom.nextBytes(nonce);
            return nonce;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
Back to top