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.AEADBlockCipher
wrappedCipher
-
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.CipherParameters
createParams(byte[] key, javax.crypto.spec.GCMParameterSpec gcmParameterSpec)
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
-
createParams
protected abstract org.bouncycastle.crypto.CipherParameters createParams(byte[] key, javax.crypto.spec.GCMParameterSpec gcmParameterSpec)
-
-