jonelo.jacksum.adapt.org.bouncycastle.crypto.engines
Class GOST28147Engine
java.lang.Object
jonelo.jacksum.adapt.org.bouncycastle.crypto.engines.GOST28147Engine
- BlockCipher
public class GOST28147Engine
extends java.lang.Object
implements BlockCipher
implementation of GOST 28147-89
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()
|
BLOCK_SIZE
protected static final int BLOCK_SIZE
GOST28147Engine
public GOST28147Engine()
standard constructor.
getAlgorithmName
public String getAlgorithmName()
getBlockSize
public int getBlockSize()
getSBox
public static byte[] getSBox(String sBoxName)
Return the S-Box associated with SBoxName
sBoxName
- name of the S-Box
- byte array representing the S-Box
init
public void init(boolean forEncryption,
CipherParameters params)
initialise an GOST28147 cipher.
forEncryption
- whether or not we are for encryption.params
- the parameters required to set up the cipher.
processBlock
public int processBlock(byte[] in,
int inOff,
byte[] out,
int outOff)