org.bouncycastle.crypto.engines
public class RijndaelEngine extends Object implements BlockCipher
Note: this implementation is based on information prior to final NIST publication.
Constructor Summary | |
---|---|
RijndaelEngine()
default constructor - 128 bit block size. | |
RijndaelEngine(int blockBits)
basic constructor - set the cipher up for a given blocksize
|
Method Summary | |
---|---|
String | getAlgorithmName() |
int | getBlockSize() |
void | init(boolean forEncryption, CipherParameters params)
initialise a Rijndael cipher.
|
int | processBlock(byte[] in, int inOff, byte[] out, int outOff) |
void | reset() |
Parameters: blockBits the blocksize in bits, must be 128, 192, or 256.
Parameters: forEncryption whether or not we are for encryption. params the parameters required to set up the cipher.
Throws: IllegalArgumentException if the params argument is inappropriate.