public class AesGcmCipher
extends javax.crypto.CipherSpi
AesGcmCipher implements CipherSpi for the "AES/GCM/NoPadding" transformation.
CloudHSM's AES/GCM/NoPadding implementation is special with respect to IV. During the Encrypt
operation mode, the IV is generated within CloudHSM and any caller-provided IV is ignored.
Applications may call Cipher.getIV() after Cipher.doFinal() to get the generated
IV.
CloudHSM does not need a SecureRandom source, as the HSM handles randomness
internally. Any source of SecureRandom passed to Cipher methods will be ignored.
Cipher,
SecureRandom,
GCMParameterSpec| Constructor and Description |
|---|
AesGcmCipher(CloudHsmProvider provider)
Constructs this Cipher in GCM mode with no padding.
|
public AesGcmCipher(CloudHsmProvider provider) throws java.lang.IllegalStateException
provider - CloudHSM provider that offers this service.java.lang.IllegalStateException - when provider is null.