public class GOSTParameterSpec
extends java.lang.Object
implements java.security.spec.AlgorithmParameterSpec
This class represents an initialization vector (IV) and the GOST S-Boxes.
If you want to use the default S-Boxes or want the IV to be
generated automatically pass null
.
The S-Boxes have to be a byte array with 8*16 entries ranging from 0 to 15. S-Box 1 starts at index 0, S-Box 2 at 16, etc. For the S-Boxes given in Schneier's book that would be 4, 10, 9, 2, ... , 6, 11, 8, 12.
GOST
,
AlgorithmParameterSpec
Constructor and Description |
---|
GOSTParameterSpec(byte[] SBoxes,
byte[] initVector)
Creates a GOST Parameter specification by using the given SBoxes and the
first 8 bytes of the supplied byte array as initialization vector (IV).
|
GOSTParameterSpec(byte[] SBoxes,
byte[] initVector,
int offset)
Creates a GOST Parameter specification by using the given SBoxes and
8 bytes of the supplied byte array as initialization vector (IV), beginning
at the given offset.
|
public GOSTParameterSpec(byte[] SBoxes, byte[] initVector)
public GOSTParameterSpec(byte[] SBoxes, byte[] initVector, int offset)