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) voidinit(Cipher.CryptMode cryptMode, byte[] bytes, GCMParameterSpec gcmParameterSpec) voidreset()byte[]update(byte[] in, int inOffset, int inLength) voidupdateAAD(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:
initin interfaceAEADBlockCipher- Throws:
SecurityException
-
updateAAD
- Specified by:
updateAADin interfaceAEADBlockCipher- Throws:
SecurityException
-
update
- Specified by:
updatein interfaceAEADBlockCipher- Throws:
SecurityException
-
doFinal
- Specified by:
doFinalin interfaceAEADBlockCipher- Throws:
SecurityException
-
reset
public void reset()- Specified by:
resetin interfaceAEADBlockCipher
-