Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for setKeyRotationBytesLimit (0.1 seconds)

  1. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

            return rotationCount;
        }
    
        /**
         * Set the key rotation bytes limit
         *
         * @param limit number of bytes to encrypt before rotating keys
         */
        public void setKeyRotationBytesLimit(long limit) {
            this.keyRotationBytesLimit = limit;
        }
    
        /**
         * Set the key rotation time limit
         *
         * @param limit time in milliseconds before rotating keys
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 35.5K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

                    encKey, decKey, sessionKey, preauthHash);
    
            // When - Set very low rotation limits to trigger rotation
            context.setKeyRotationBytesLimit(100); // Rotate after 100 bytes
    
            // Encrypt first message - should work
            byte[] plaintext1 = "Message before rotation".getBytes();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 44.1K bytes
    - Click Count (0)
Back to Top