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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
doFinal(byte[] in, int inOffset, int inLength)
void
init(Cipher.CryptMode cryptMode, byte[] bytes, javax.crypto.spec.GCMParameterSpec gcmParameterSpec)
void
reset()
byte[]
update(byte[] in, int inOffset, int inLength)
void
updateAAD(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:
init
in interfaceAEADBlockCipher
- Throws:
SecurityException
-
updateAAD
public void updateAAD(byte[] aad, int aadOffset, int aadLength) throws SecurityException
- Specified by:
updateAAD
in interfaceAEADBlockCipher
- Throws:
SecurityException
-
update
public byte[] update(byte[] in, int inOffset, int inLength) throws SecurityException
- Specified by:
update
in interfaceAEADBlockCipher
- Throws:
SecurityException
-
doFinal
public byte[] doFinal(byte[] in, int inOffset, int inLength) throws SecurityException
- Specified by:
doFinal
in interfaceAEADBlockCipher
- Throws:
SecurityException
-
reset
public void reset()
- Specified by:
reset
in interfaceAEADBlockCipher
-
-