- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for rotateKeys (1.24 sec)
-
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
* * @param newEncryptionKey the new encryption key * @param newDecryptionKey the new decryption key * @throws GeneralSecurityException if key rotation fails */ public void rotateKeys(byte[] newEncryptionKey, byte[] newDecryptionKey) throws GeneralSecurityException { if (closed) { throw new IllegalStateException("Cannot rotate keys on closed context"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 35.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
byte[] newDecKey = new byte[16]; new SecureRandom().nextBytes(newEncKey); new SecureRandom().nextBytes(newDecKey); // Use same key for enc/dec in test for simplicity context.rotateKeys(newEncKey, newEncKey); // Then - Can encrypt with new keys byte[] plaintext2 = "After rotation".getBytes(); byte[] encrypted2 = context.encryptMessage(plaintext2, 2L);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 44.1K bytes - Viewed (0)