| org.bouncycastle.crypto.BlockCipher
All known Subclasses: org.bouncycastle.crypto.modes.OpenPGPCFBBlockCipher, org.bouncycastle.crypto.engines.SEEDEngine, org.bouncycastle.crypto.engines.RC564Engine, org.bouncycastle.crypto.engines.TEAEngine, org.bouncycastle.crypto.engines.AESEngine, org.bouncycastle.crypto.engines.RijndaelEngine, org.bouncycastle.crypto.engines.NullEngine, org.bouncycastle.crypto.modes.GOFBBlockCipher, org.bouncycastle.crypto.engines.AESFastEngine, org.bouncycastle.crypto.modes.SICBlockCipher, org.bouncycastle.crypto.engines.CAST5Engine, org.bouncycastle.crypto.modes.CFBBlockCipher, org.bouncycastle.crypto.engines.IDEAEngine, org.bouncycastle.crypto.modes.PGPCFBBlockCipher, org.bouncycastle.crypto.modes.CBCBlockCipher, org.bouncycastle.crypto.engines.XTEAEngine, org.bouncycastle.crypto.engines.SerpentEngine, org.bouncycastle.crypto.modes.OFBBlockCipher, org.bouncycastle.crypto.engines.GOST28147Engine, org.bouncycastle.crypto.engines.CamelliaEngine, org.bouncycastle.crypto.engines.AESLightEngine, org.bouncycastle.crypto.engines.BlowfishEngine, org.bouncycastle.crypto.engines.RC2Engine, org.bouncycastle.crypto.engines.TwofishEngine, org.bouncycastle.crypto.engines.RC532Engine, org.bouncycastle.crypto.engines.DESEngine, org.bouncycastle.crypto.engines.RC6Engine, org.bouncycastle.crypto.engines.SkipjackEngine, org.bouncycastle.crypto.engines.NoekeonEngine,
BlockCipher | public interface BlockCipher (Code) | | Block cipher engines are expected to conform to this interface.
|
Method Summary | |
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) Initialise the cipher. | public int | processBlock(byte[] in, int inOff, byte[] out, int outOff) Process one block of input from the array in and write it to
the out array.
Parameters: in - the array containing the input data. Parameters: inOff - offset into the in array the data starts at. Parameters: out - the array the output data will be copied into. Parameters: outOff - the offset into the out array the output will start at. exception: DataLengthException - if there isn't enough data in in, orspace in out. exception: IllegalStateException - if the cipher isn't initialised. | public void | reset() Reset the cipher. |
getAlgorithmName | public String getAlgorithmName()(Code) | | Return the name of the algorithm the cipher implements.
the name of the algorithm the cipher implements. |
getBlockSize | public int getBlockSize()(Code) | | Return the block size for this cipher (in bytes).
the block size for this cipher in bytes. |
init | public void init(boolean forEncryption, CipherParameters params) throws IllegalArgumentException(Code) | | Initialise the cipher.
Parameters: forEncryption - if true the cipher is initialised forencryption, if false for decryption. Parameters: params - the key and other data required by the cipher. exception: IllegalArgumentException - if the params argument isinappropriate. |
processBlock | public int processBlock(byte[] in, int inOff, byte[] out, int outOff) throws DataLengthException, IllegalStateException(Code) | | Process one block of input from the array in and write it to
the out array.
Parameters: in - the array containing the input data. Parameters: inOff - offset into the in array the data starts at. Parameters: out - the array the output data will be copied into. Parameters: outOff - the offset into the out array the output will start at. exception: DataLengthException - if there isn't enough data in in, orspace in out. exception: IllegalStateException - if the cipher isn't initialised. the number of bytes processed and produced. |
reset | public void reset()(Code) | | Reset the cipher. After resetting the cipher is in the same state
as it was after the last init (if there was one).
|
|
|