org.bouncycastle.jce.spec

Class GOST28147ParameterSpec

Implemented Interfaces:
AlgorithmParameterSpec

public class GOST28147ParameterSpec
extends java.lang.Object
implements AlgorithmParameterSpec

A parameter spec for the GOST-28147 cipher.

Constructor Summary

GOST28147ParameterSpec(String sBoxName)
GOST28147ParameterSpec(String sBoxName, byte[] iv)
GOST28147ParameterSpec(byte[] sBox)
GOST28147ParameterSpec(byte[] sBox, byte[] iv)

Method Summary

byte[]
getIV()
Returns the IV or null if this parameter set does not contain an IV.
byte[]
getSbox()

Constructor Details

GOST28147ParameterSpec

public GOST28147ParameterSpec(String sBoxName)


GOST28147ParameterSpec

public GOST28147ParameterSpec(String sBoxName,
                              byte[] iv)


GOST28147ParameterSpec

public GOST28147ParameterSpec(byte[] sBox)


GOST28147ParameterSpec

public GOST28147ParameterSpec(byte[] sBox,
                              byte[] iv)

Method Details

getIV

public byte[] getIV()
Returns the IV or null if this parameter set does not contain an IV.

Returns:
the IV or null if this parameter set does not contain an IV.


getSbox

public byte[] getSbox()