Package com.hierynomus.security.jce
Class JceAEADCipher
- java.lang.Object
-
- com.hierynomus.security.jce.JceAEADCipher
-
- All Implemented Interfaces:
AEADBlockCipher
public class JceAEADCipher extends java.lang.Object implements AEADBlockCipher
-
-
Method Summary
Modifier and Type Method Description byte[]doFinal(byte[] in, int inOffset, int inLength)voidinit(Cipher.CryptMode cryptMode, byte[] bytes, javax.crypto.spec.GCMParameterSpec gcmParameterSpec)voidreset()byte[]update(byte[] in, int inOffset, int inLength)voidupdateAAD(byte[] aad, int aadOffset, int aadLength)
-
-
-
Method Detail
-
init
public void init(Cipher.CryptMode cryptMode, byte[] bytes, javax.crypto.spec.GCMParameterSpec gcmParameterSpec) throws SecurityException
- Specified by:
initin interfaceAEADBlockCipher- Throws:
SecurityException
-
updateAAD
public void updateAAD(byte[] aad, int aadOffset, int aadLength) throws SecurityException- Specified by:
updateAADin interfaceAEADBlockCipher- Throws:
SecurityException
-
update
public byte[] update(byte[] in, int inOffset, int inLength) throws SecurityException- Specified by:
updatein interfaceAEADBlockCipher- Throws:
SecurityException
-
doFinal
public byte[] doFinal(byte[] in, int inOffset, int inLength) throws SecurityException- Specified by:
doFinalin interfaceAEADBlockCipher- Throws:
SecurityException
-
reset
public void reset()
- Specified by:
resetin interfaceAEADBlockCipher
-
-