- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for GCMParameterSpec (0.08 seconds)
-
src/main/java/jcifs/util/SecureCredentialStorage.java
byte[] iv = new byte[GCM_IV_SIZE]; secureRandom.nextBytes(iv); // Setup cipher Cipher cipher = Cipher.getInstance(ENCRYPTION_ALGORITHM); GCMParameterSpec gcmSpec = new GCMParameterSpec(GCM_TAG_SIZE, iv); cipher.init(Cipher.ENCRYPT_MODE, masterKey, gcmSpec); // Encrypt byte[] ciphertext = cipher.doFinal(plaintextBytes);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 12.7K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
final SecretKeySpec keySpec = new SecretKeySpec(keyCopy, "AES"); final Cipher cipher = Cipher.getInstance(transformation); final GCMParameterSpec gcmSpec = new GCMParameterSpec(getAuthTagLength() * 8, nonce); cipher.init(encrypt ? Cipher.ENCRYPT_MODE : Cipher.DECRYPT_MODE, keySpec, gcmSpec); return cipher; } finally {
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)