org.bouncycastle.jce.provider
Class JCEBlockCipher.AEADGenericBlockCipher
java.lang.Object
org.bouncycastle.jce.provider.JCEBlockCipher.AEADGenericBlockCipher
- All Implemented Interfaces:
- JCEBlockCipher.GenericBlockCipher
- Enclosing class:
- JCEBlockCipher
private static class JCEBlockCipher.AEADGenericBlockCipher
- extends java.lang.Object
- implements JCEBlockCipher.GenericBlockCipher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cipher
private AEADBlockCipher cipher
JCEBlockCipher.AEADGenericBlockCipher
JCEBlockCipher.AEADGenericBlockCipher(AEADBlockCipher cipher)
init
public void init(boolean forEncryption,
CipherParameters params)
throws java.lang.IllegalArgumentException
- Specified by:
init
in interface JCEBlockCipher.GenericBlockCipher
- Throws:
java.lang.IllegalArgumentException
getAlgorithmName
public java.lang.String getAlgorithmName()
- Specified by:
getAlgorithmName
in interface JCEBlockCipher.GenericBlockCipher
wrapOnNoPadding
public boolean wrapOnNoPadding()
- Specified by:
wrapOnNoPadding
in interface JCEBlockCipher.GenericBlockCipher
getUnderlyingCipher
public BlockCipher getUnderlyingCipher()
- Specified by:
getUnderlyingCipher
in interface JCEBlockCipher.GenericBlockCipher
getOutputSize
public int getOutputSize(int len)
- Specified by:
getOutputSize
in interface JCEBlockCipher.GenericBlockCipher
getUpdateOutputSize
public int getUpdateOutputSize(int len)
- Specified by:
getUpdateOutputSize
in interface JCEBlockCipher.GenericBlockCipher
processByte
public int processByte(byte in,
byte[] out,
int outOff)
throws DataLengthException
- Specified by:
processByte
in interface JCEBlockCipher.GenericBlockCipher
- Throws:
DataLengthException
processBytes
public int processBytes(byte[] in,
int inOff,
int len,
byte[] out,
int outOff)
throws DataLengthException
- Specified by:
processBytes
in interface JCEBlockCipher.GenericBlockCipher
- Throws:
DataLengthException
doFinal
public int doFinal(byte[] out,
int outOff)
throws java.lang.IllegalStateException,
InvalidCipherTextException
- Specified by:
doFinal
in interface JCEBlockCipher.GenericBlockCipher
- Throws:
java.lang.IllegalStateException
InvalidCipherTextException