- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for deriveEncryptionKey (0.1 seconds)
-
src/main/java/jcifs/internal/smb2/Smb3KeyDerivation.java
* @param sessionKey the base session key * @param preauthIntegrity the pre-authentication integrity hash (for SMB 3.1.1) or null * @return derived encryption key */ public static byte[] deriveEncryptionKey(final int dialect, final byte[] sessionKey, final byte[] preauthIntegrity) { return derive(sessionKey, dialect == Smb2Constants.SMB2_DIALECT_0311 ? ENCLABEL_311 : ENCLABEL_300,Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb3KeyDerivationTest.java
void testDeriveEncryptionKey_DifferentDialects() { // When byte[] encKey300 = Smb3KeyDerivation.deriveEncryptionKey(Smb2Constants.SMB2_DIALECT_0300, sessionKey, preauthIntegrity); byte[] encKey311 = Smb3KeyDerivation.deriveEncryptionKey(Smb2Constants.SMB2_DIALECT_0311, sessionKey, preauthIntegrity); // Then
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.5K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
// Derive new keys using SMB3 KDF with rotation-specific input final int dialectInt = dialect.getDialect(); final byte[] newEncryptionKey = Smb3KeyDerivation.deriveEncryptionKey(dialectInt, modifiedSessionKey, preauthIntegrityHash); final byte[] newDecryptionKey = Smb3KeyDerivation.deriveDecryptionKey(dialectInt, modifiedSessionKey, preauthIntegrityHash);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) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
new SecureRandom().nextBytes(preauthHash); // Derive initial keys int dialectInt = DialectVersion.SMB311.getDialect(); byte[] encKey = Smb3KeyDerivation.deriveEncryptionKey(dialectInt, sessionKey, preauthHash); byte[] decKey = Smb3KeyDerivation.deriveDecryptionKey(dialectInt, sessionKey, preauthHash); // Create context with session key for auto-rotation
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) -
src/main/java/jcifs/smb/SmbTransportImpl.java
} try { // Derive encryption and decryption keys using SMB3 KDF final int dialectInt = dialect.getDialect(); final byte[] encryptionKey = Smb3KeyDerivation.deriveEncryptionKey(dialectInt, sessionKey, preauthHash); final byte[] decryptionKey = Smb3KeyDerivation.deriveDecryptionKey(dialectInt, sessionKey, preauthHash);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 69.8K bytes - Click Count (0)