Save This Page
Home » crypto-143 » org.bouncycastle.crypto » [javadoc | source]
org.bouncycastle.crypto
public interface: BlockCipher [javadoc | source]

All Known Implementing Classes:
    AESEngine, TEAEngine, RC2Engine, NoekeonEngine, AESFastEngine, RC6Engine, XTEAEngine, OpenPGPCFBBlockCipher, DESEngine, CAST5Engine, SEEDEngine, CamelliaEngine, AESLightEngine, RijndaelEngine, GOST28147Engine, OFBBlockCipher, GOFBBlockCipher, TwofishEngine, NullEngine, PGPCFBBlockCipher, DESedeEngine, SkipjackEngine, IDEAEngine, SICBlockCipher, RC532Engine, CAST6Engine, BlowfishEngine, SerpentEngine, RC564Engine, CamelliaLightEngine, CFBBlockCipher, CBCBlockCipher

Block cipher engines are expected to conform to this interface.
Method from org.bouncycastle.crypto.BlockCipher Summary:
getAlgorithmName,   getBlockSize,   init,   processBlock,   reset
Method from org.bouncycastle.crypto.BlockCipher Detail:
 public String getAlgorithmName()
    Return the name of the algorithm the cipher implements.
 public int getBlockSize()
    Return the block size for this cipher (in bytes).
 public  void init(boolean forEncryption,
    CipherParameters params) throws IllegalArgumentException
    Initialise the cipher.
 public int processBlock(byte[] in,
    int inOff,
    byte[] out,
    int outOff) throws DataLengthException, IllegalStateException
    Process one block of input from the array in and write it to the out array.
 public  void reset()
    Reset the cipher. After resetting the cipher is in the same state as it was after the last init (if there was one).