public class GOST3411Digest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) byte[] |
a |
private long |
byteCount |
private byte[][] |
C |
private static byte[] |
C2
reset the chaining variables to the IV values.
|
private GOST28147Engine |
cipher |
private static int |
DIGEST_LENGTH |
private byte[] |
H |
private byte[] |
K |
private byte[] |
L |
private byte[] |
M |
(package private) byte[] |
S |
private byte[] |
Sum |
(package private) byte[] |
U |
(package private) byte[] |
V |
(package private) byte[] |
W |
(package private) short[] |
w_S |
(package private) short[] |
wS |
private byte[] |
xBuf |
private int |
xBufOff |
Constructor and Description |
---|
GOST3411Digest()
Standard constructor
|
GOST3411Digest(GOST3411Digest t)
Copy constructor.
|
GOST3411Digest(java.lang.String sBoxName)
Constructor with option to choose initialization vector
|
Modifier and Type | Method and Description |
---|---|
private byte[] |
A(byte[] in) |
private void |
cpyBytesToShort(byte[] S,
short[] wS) |
private void |
cpyShortToBytes(short[] wS,
byte[] S) |
int |
doFinal(byte[] out,
int outOff) |
private void |
E(byte[] key,
byte[] s,
int sOff,
byte[] in,
int inOff) |
private void |
finish() |
private void |
fw(byte[] in) |
java.lang.String |
getAlgorithmName() |
int |
getByteLength() |
int |
getDigestSize() |
private void |
LongToBytes(long r,
byte[] out,
int outOff) |
private byte[] |
P(byte[] in) |
protected void |
processBlock(byte[] in,
int inOff) |
void |
reset() |
private void |
sumByteArray(byte[] in) |
void |
update(byte in) |
void |
update(byte[] in,
int inOff,
int len) |
private static final int DIGEST_LENGTH
private byte[] H
private byte[] L
private byte[] M
private byte[] Sum
private byte[][] C
private byte[] xBuf
private int xBufOff
private long byteCount
private GOST28147Engine cipher
private byte[] K
byte[] a
short[] wS
short[] w_S
byte[] S
byte[] U
byte[] V
byte[] W
private static final byte[] C2
public GOST3411Digest()
public GOST3411Digest(java.lang.String sBoxName)
public GOST3411Digest(GOST3411Digest t)
public java.lang.String getAlgorithmName()
public int getDigestSize()
public void update(byte in)
public void update(byte[] in, int inOff, int len)
private byte[] P(byte[] in)
private byte[] A(byte[] in)
private void E(byte[] key, byte[] s, int sOff, byte[] in, int inOff)
private void fw(byte[] in)
protected void processBlock(byte[] in, int inOff)
private void finish()
public int doFinal(byte[] out, int outOff)
public void reset()
private void sumByteArray(byte[] in)
private void LongToBytes(long r, byte[] out, int outOff)
private void cpyBytesToShort(byte[] S, short[] wS)
private void cpyShortToBytes(short[] wS, byte[] S)
public int getByteLength()
Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.