public class LunaCipherAESGcm extends LunaCipher
LunaCipher.PaddingAES_GCM_GENERATED_IV_LENGTH, bytesCached, keySizeBytes, LOGGER, mAccumulator, mAlgParams, mBlockSize, mHsmOperationActive, mKey, mMechType, mOpMode, mPadding, mStandardSpec, rand| Constructor and Description |
|---|
LunaCipherAESGcm() |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
engineGetIV()
Returns the initialization vector (IV).
|
protected int |
engineGetOutputSize(int inputLen) |
protected void |
engineInit(int opmode,
java.security.Key key,
java.security.spec.AlgorithmParameterSpec spec,
java.security.SecureRandom random) |
protected void |
engineInit(int opmode,
java.security.Key key,
java.security.AlgorithmParameters params,
java.security.SecureRandom random) |
protected void |
engineInit(int opmode,
java.security.Key key,
java.security.SecureRandom random) |
protected java.security.Key |
engineUnwrap(byte[] wrappedKey,
java.lang.String wrappedKeyAlgorithm,
int wrappedKeyType)
Unwrap a previously wrapped key.
|
protected byte[] |
engineWrap(java.security.Key key) |
engineDoFinal, engineDoFinal, engineGetBlockSize, engineGetFinalOutputSize, engineGetKeySize, engineGetParameters, engineGetUpdateOutputSize, engineSetMode, engineSetPadding, engineUpdate, engineUpdate, engineUpdateAAD, finalizeprotected int engineGetOutputSize(int inputLen)
engineGetOutputSize in class LunaCipherprotected void engineInit(int opmode,
java.security.Key key,
java.security.spec.AlgorithmParameterSpec spec,
java.security.SecureRandom random)
throws java.security.InvalidKeyException,
java.security.InvalidAlgorithmParameterException
engineInit in class javax.crypto.CipherSpijava.security.InvalidKeyExceptionjava.security.InvalidAlgorithmParameterExceptionprotected void engineInit(int opmode,
java.security.Key key,
java.security.AlgorithmParameters params,
java.security.SecureRandom random)
throws java.security.InvalidKeyException,
java.security.InvalidAlgorithmParameterException
engineInit in class javax.crypto.CipherSpijava.security.InvalidKeyExceptionjava.security.InvalidAlgorithmParameterExceptionprotected void engineInit(int opmode,
java.security.Key key,
java.security.SecureRandom random)
throws java.security.InvalidKeyException
engineInit in class LunaCipherjava.security.InvalidKeyExceptionprotected byte[] engineWrap(java.security.Key key)
throws javax.crypto.IllegalBlockSizeException,
java.security.InvalidKeyException
engineWrap in class LunaCipherjavax.crypto.IllegalBlockSizeExceptionjava.security.InvalidKeyExceptionprotected java.security.Key engineUnwrap(byte[] wrappedKey,
java.lang.String wrappedKeyAlgorithm,
int wrappedKeyType)
throws java.security.InvalidKeyException
LunaCipherengineUnwrap in class LunaCipherjava.security.InvalidKeyException - if wrappedKey cannot be unwrapped properlyprotected byte[] engineGetIV()
engineGetIV in class LunaCipherCopyright 2014-2018 SafeNet. All rights reserved.