Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getKeyRotationCount (0.3 sec)

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

        }
    
        /**
         * Get the current key rotation count
         *
         * @return number of times keys have been rotated
         */
        public int getKeyRotationCount() {
            return rotationCount;
        }
    
        /**
         * Set the key rotation bytes limit
         *
         * @param limit number of bytes to encrypt before rotating keys
         */
    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

            byte[] encrypted2 = assertDoesNotThrow(() -> context.encryptMessage(largeMessage, 2L));
            assertNotNull(encrypted2);
    
            // Verify rotation occurred by checking metrics
            assertTrue(context.getKeyRotationCount() > 0, "Key rotation should have occurred");
    
            // Can still encrypt after rotation
            byte[] plaintext3 = "Message after rotation".getBytes();
    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