org.bouncycastle.jce.provider
Class JCEBlockCipher.AEADGenericBlockCipher

java.lang.Object
  extended by 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


Field Summary
private  AEADBlockCipher cipher
           
 
Constructor Summary
JCEBlockCipher.AEADGenericBlockCipher(AEADBlockCipher cipher)
           
 
Method Summary
 int doFinal(byte[] out, int outOff)
           
 java.lang.String getAlgorithmName()
           
 int getOutputSize(int len)
           
 BlockCipher getUnderlyingCipher()
           
 int getUpdateOutputSize(int len)
           
 void init(boolean forEncryption, CipherParameters params)
           
 int processByte(byte in, byte[] out, int outOff)
           
 int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff)
           
 boolean wrapOnNoPadding()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cipher

private AEADBlockCipher cipher
Constructor Detail

JCEBlockCipher.AEADGenericBlockCipher

JCEBlockCipher.AEADGenericBlockCipher(AEADBlockCipher cipher)
Method Detail

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