org.bouncycastle.crypto.engines
public class GOST28147Engine extends Object implements BlockCipher
| Field Summary | |
|---|---|
| protected static int | BLOCK_SIZE |
| Constructor Summary | |
|---|---|
| GOST28147Engine()
standard constructor. | |
| Method Summary | |
|---|---|
| String | getAlgorithmName() |
| int | getBlockSize() |
| static byte[] | getSBox(String sBoxName)
Return the S-Box associated with SBoxName |
| void | init(boolean forEncryption, CipherParameters params)
initialise an GOST28147 cipher.
|
| int | processBlock(byte[] in, int inOff, byte[] out, int outOff) |
| void | reset() |
Parameters: sBoxName name of the S-Box
Returns: byte array representing the S-Box
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.