Package com.hierynomus.security.bc
Class BCAEADCipherFactory.BCAEADBlockCipher
- java.lang.Object
-
- com.hierynomus.security.bc.BCAEADCipherFactory.BCAEADBlockCipher
-
- All Implemented Interfaces:
AEADBlockCipher
- Enclosing class:
- BCAEADCipherFactory
private abstract static class BCAEADCipherFactory.BCAEADBlockCipher extends java.lang.Object implements AEADBlockCipher
-
-
Field Summary
Fields Modifier and Type Field Description private org.bouncycastle.crypto.modes.AEADBlockCipherwrappedCipher
-
Constructor Summary
Constructors Constructor Description BCAEADBlockCipher(org.bouncycastle.crypto.modes.AEADBlockCipher aeadBlockCipher)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract org.bouncycastle.crypto.CipherParameterscreateParams(byte[] key, javax.crypto.spec.GCMParameterSpec gcmParameterSpec)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
-
createParams
protected abstract org.bouncycastle.crypto.CipherParameters createParams(byte[] key, javax.crypto.spec.GCMParameterSpec gcmParameterSpec)
-
-