- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for Smb3KeyDerivation (0.45 sec)
-
src/main/java/jcifs/internal/smb2/Smb3KeyDerivation.java
import org.bouncycastle.crypto.macs.HMac; import org.bouncycastle.crypto.params.KDFCounterParameters; /** * SMB3 SP800-108 Counter Mode Key Derivation * * @author mbechler * */ public final class Smb3KeyDerivation { private static final byte[] SIGNCONTEXT_300 = toCBytes("SmbSign"); private static final byte[] SIGNLABEL_300 = toCBytes("SMB2AESCMAC"); private static final byte[] SIGNLABEL_311 = toCBytes("SMBSigningKey");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb3KeyDerivationTest.java
// When byte[] signingKey = Smb3KeyDerivation.deriveSigningKey(dialect, sessionKey, preauthIntegrity); byte[] appKey = Smb3KeyDerivation.dervieApplicationKey(dialect, sessionKey, preauthIntegrity); byte[] encKey = Smb3KeyDerivation.deriveEncryptionKey(dialect, sessionKey, preauthIntegrity); byte[] decKey = Smb3KeyDerivation.deriveDecryptionKey(dialect, sessionKey, preauthIntegrity);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java
void testConstructorSmb300() throws GeneralSecurityException { try (MockedStatic<Smb3KeyDerivation> mockedKeyDerivation = mockStatic(Smb3KeyDerivation.class)) { byte[] derivedKey = new byte[16]; Arrays.fill(derivedKey, (byte) 0xCC); mockedKeyDerivation.when( () -> Smb3KeyDerivation.deriveSigningKey(eq(Smb2Constants.SMB2_DIALECT_0300), any(byte[].class), any(byte[].class)))
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 43.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java
this.signingKey = sessionKey.clone(); break; case Smb2Constants.SMB2_DIALECT_0300: case Smb2Constants.SMB2_DIALECT_0302: this.signingKey = Smb3KeyDerivation.deriveSigningKey(dialect, sessionKey, new byte[0] /* unimplemented */); this.algorithmName = "AESCMAC"; this.provider = Crypto.getProvider(); break;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
final int dialectInt = dialect.getDialect(); final byte[] newEncryptionKey = Smb3KeyDerivation.deriveEncryptionKey(dialectInt, modifiedSessionKey, preauthIntegrityHash); final byte[] newDecryptionKey = Smb3KeyDerivation.deriveDecryptionKey(dialectInt, modifiedSessionKey, preauthIntegrityHash); // Securely wipe the modified session key
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
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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 44.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTransportImpl.java
// 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); // Pass session key and preauthHash to enable automatic key rotation
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 69.8K bytes - Viewed (0)