Package com.hierynomus.security.jce
Class JceAEADCipher
java.lang.Object
com.hierynomus.security.jce.JceAEADCipher
- All Implemented Interfaces:
AEADBlockCipher
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
doFinal
(byte[] in, int inOffset, int inLength) void
init
(Cipher.CryptMode cryptMode, byte[] bytes, GCMParameterSpec gcmParameterSpec) void
reset()
byte[]
update
(byte[] in, int inOffset, int inLength) void
updateAAD
(byte[] aad, int aadOffset, int aadLength)
-
Field Details
-
cipher
-
-
Constructor Details
-
JceAEADCipher
JceAEADCipher(String name, Provider jceProvider, String providerName) throws SecurityException - Throws:
SecurityException
-
-
Method Details
-
init
public void init(Cipher.CryptMode cryptMode, byte[] bytes, GCMParameterSpec gcmParameterSpec) throws SecurityException - Specified by:
init
in interfaceAEADBlockCipher
- Throws:
SecurityException
-
updateAAD
- Specified by:
updateAAD
in interfaceAEADBlockCipher
- Throws:
SecurityException
-
update
- Specified by:
update
in interfaceAEADBlockCipher
- Throws:
SecurityException
-
doFinal
- Specified by:
doFinal
in interfaceAEADBlockCipher
- Throws:
SecurityException
-
reset
public void reset()- Specified by:
reset
in interfaceAEADBlockCipher
-