public class AesCtrCipher
extends javax.crypto.CipherSpi
AesCtrCipher implements CipherSpi for the “AES/CTR/NoPadding”
transformation.
For any Cipher::update() or Cipher::doFinal() method, an AesCtrCounterException will be thrown if the counter is
exhausted.
CloudHSM does not need a SecureRandom source, as the HSM handles randomness
internally. Any source of SecureRandom passed to Cipher methods will be ignored.
AesCtrCounterException,
Cipher,
SecureRandom| Constructor and Description |
|---|
AesCtrCipher(CloudHsmProvider provider)
Constructs this Cipher in CTR mode with no padding.
|
public AesCtrCipher(CloudHsmProvider provider) throws java.lang.IllegalStateException
provider - CloudHSM provider that offers this service.java.lang.IllegalStateException - when provider is null.