Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GCMParameterSpec (0.52 sec)

  1. 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);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  2. 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 {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
Back to top