- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 31 for aes (0.01 seconds)
-
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
// Determine key size based on cipher ID for AES-256 support int keyLength = getKeyLength(); String transformation; // Select appropriate AES algorithm based on key length if (keyLength == 32) { // AES-256 support transformation = "AES/GCM/NoPadding"; } else if (keyLength == 16) { // AES-128 (existing)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/util/CryptoTest.java
} @Test @DisplayName("Should handle AES encryption operations") void testAESOperations() throws Exception { // Given byte[] key = new byte[16]; // 128-bit key byte[] iv = new byte[16]; // 128-bit IV byte[] plaintext = "This is test data for AES encryption test".getBytes(); new SecureRandom().nextBytes(key);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.4K bytes - Click Count (0) -
src/main/java/org/codelibs/core/crypto/CachedCipher.java
* * // Decrypt text * String decrypted = cipher.decryptText(encrypted); * * // For AES encryption * CachedCipher aesCipher = new CachedCipher(); * aesCipher.setAlgorithm("AES"); * aesCipher.setTransformation("AES"); * aesCipher.setKey("0123456789abcdef"); // 16-byte key for AES-128 * </pre> * * @author higa */ public class CachedCipher { /**
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 15.9K bytes - Click Count (0) -
src/main/java/jcifs/pac/PacMac.java
ms_usage = 8; case 23: ms_usage = 13; } return ms_usage; } /** * Calculates a MAC using HMAC-SHA1 with AES key derivation. * This method supports both AES-128 and AES-256 encryption types. * * @param usage the Kerberos key usage number for this operation * @param baseKey the base Kerberos key for key derivationCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 9K bytes - Click Count (0) -
src/test/java/jcifs/util/SecureKeyManagerTest.java
byte[] key2 = new byte[16]; new SecureRandom().nextBytes(key1); new SecureRandom().nextBytes(key2); keyManager.storeSessionKey(sessionId1, key1, "AES"); keyManager.storeSessionKey(sessionId2, key2, "AES"); byte[] retrieved1 = keyManager.getRawKey(sessionId1); byte[] retrieved2 = keyManager.getRawKey(sessionId2);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 14.2K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/nego/EncryptionNegotiateContext.java
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 */ public static final int CIPHER_AES256_GCM = 0x4;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 3.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCookieResourceProviderTest.java
return "AES"; } @Override public String getAppCipherKey() { return "1234567890123456"; // 16 bytes for AES } }); // Create test cipher - use proper constructor with simple implementation InvertibleCryptographer cookieCipher = new InvertibleCryptographer("AES", "1234567890123456", null) { @Override
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 9.2K bytes - Click Count (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
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 09:24:52 GMT 2025 - 6.2K bytes - Click Count (0) -
src/test/java/jcifs/CIFSUnsupportedCryptoExceptionTest.java
@DisplayName("CIFSUnsupportedCryptoException Tests") class CIFSUnsupportedCryptoExceptionTest extends BaseTest { private static final String CRYPTO_ERROR_MESSAGE = "Unsupported cryptographic algorithm: AES-256-GCM"; private static final String ALGORITHM_NAME = "AES-256-GCM"; @Test @DisplayName("Default constructor should create exception with null message and cause") void testDefaultConstructor() { // Given & WhenCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.1K bytes - Click Count (0) -
src/main/java/jcifs/pac/PacSignature.java
* supporting various checksum algorithms including HMAC-MD5 and HMAC-SHA1 with AES. */ public class PacSignature { /** * Kerberos checksum type for HMAC-MD5 (ARCFOUR-HMAC). */ public static final int KERB_CHECKSUM_HMAC_MD5 = 0xFFFFFF76; /** * Kerberos checksum type for HMAC-SHA1-96 with AES-128. */ public static final int HMAC_SHA1_96_AES128 = 0x0000000F; /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.4K bytes - Click Count (0)