org.bouncycastle.crypto.engines
Class GOST28147Engine
java.lang.Object
org.bouncycastle.crypto.engines.GOST28147Engine
- BlockCipher
public class GOST28147Engine
extends java.lang.Object
implementation of GOST 28147-89
BLOCK_SIZE
protected static final int BLOCK_SIZE
- 8
GOST28147Engine
public GOST28147Engine()
standard constructor.
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.
- init in interface BlockCipher
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)
- processBlock in interface BlockCipher