Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for needsKeyRotation (0.34 sec)

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

         */
        public boolean needsKeyRotation() {
            return needsKeyRotation(0);
        }
    
        /**
         * Check if key rotation is needed, considering additional bytes to be encrypted
         *
         * @param additionalBytes bytes about to be encrypted
         * @return true if key rotation is needed
         */
        public boolean needsKeyRotation(int additionalBytes) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            Smb2EncryptionContext context = new Smb2EncryptionContext(1, DialectVersion.SMB311, testEncryptionKey, testDecryptionKey);
    
            // When - initially should not need rotation
            assertFalse(context.needsKeyRotation(), "Should not need rotation initially");
    
            // Note: We can't directly test the byte limit without encrypting large amounts of data,
            // but we can verify the method exists and returns proper boolean
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
Back to top