- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for CCM (0.01 sec)
-
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
assertNotNull(nonce2, "Second nonce should not be null"); assertEquals(12, nonce1.length, "CCM nonce should be 12 bytes"); assertEquals(12, nonce2.length, "CCM nonce should be 12 bytes"); assertFalse(Arrays.equals(nonce1, nonce2), "Consecutive nonces should be different"); // For CCM, verify counter-based generation (first 8 bytes contain counter)
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/internal/smb2/Smb2TransformHeader.java
} /** * Sets the nonce for encryption * * @param nonce * the nonce to set (12 bytes for CCM, 16 bytes for GCM) */ public void setNonce(final byte[] nonce) { if (nonce.length == 12) { // For CCM cipher, pad nonce to 16 bytes with zeros java.util.Arrays.fill(this.nonce, (byte) 0); System.arraycopy(nonce, 0, this.nonce, 0, 12);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportImplTest.java
setField(transport, "negotiated", smb300); Smb2EncryptionContext ccm = transport.createEncryptionContext(sessionKey, preauth); assertEquals(EncryptionNegotiateContext.CIPHER_AES128_CCM, ccm.getCipherId()); assertEquals(DialectVersion.SMB300, ccm.getDialect()); // SMB 3.1.1 -> default AES-128-GCM when server did not choose
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
// Support both AES-128 and AES-256 for CCM cipher int keyLength = getKeyLength(); final AEADBlockCipher cipher; if (keyLength == 16) { // AES-128 CCM cipher = new CCMBlockCipher(new AESEngine()); } else if (keyLength == 32) { // AES-256 CCM - Bouncy Castle supports AES-256 with same AESEngineRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 35.5K bytes - Viewed (0) -
README.md
- Configurable: Min/max versions can be set via configuration properties ### SMB3 Encryption Support - **SMB2 Transform Header**: Encrypted message wrapping - **AES-CCM/GCM Support**: Both AES-128-CCM (SMB 3.0/3.0.2) and AES-128-GCM (SMB 3.1.1) cipher suites - **Encryption Context**: Per-session encryption state management - **Key Derivation**: SMB3 KDF implementation with dialect-specific parameters
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 09:24:52 UTC 2025 - 6.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/nego/EncryptionNegotiateContext.java
/** * Context type */ public static final int NEGO_CTX_ENC_TYPE = 0x2; /** * AES 128 CCM */ public static final int CIPHER_AES128_CCM = 0x1; /** * AES 128 GCM */ public static final int CIPHER_AES128_GCM = 0x2; /** * AES 256 CCM */ public static final int CIPHER_AES256_CCM = 0x3; /** * AES 256 GCM */Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 3.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateRequest.java
if (config.isEncryptionEnabled()) { // Build cipher list based on AES-256 support List<Integer> ciphers = new ArrayList<>(); // Prefer GCM over CCM for better performance if (config.isAES256Enabled()) { ciphers.add(EncryptionNegotiateContext.CIPHER_AES256_GCM); ciphers.add(EncryptionNegotiateContext.CIPHER_AES256_CCM);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTransportImpl.java
cipherId = EncryptionNegotiateContext.CIPHER_AES128_GCM; } } else if (dialect.atLeast(DialectVersion.SMB300)) { // SMB 3.0/3.0.2 only supports AES-128-CCM cipherId = EncryptionNegotiateContext.CIPHER_AES128_CCM; } else { throw new SmbUnsupportedOperationException("SMB3 required for encryption, negotiated: " + dialect); }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 69.8K bytes - Viewed (0)