|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkz.gamma.hash.GOST3411Digest
public class GOST3411Digest
implementation of GOST R 34.11-94
| Field Summary | |
|---|---|
(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 Summary | |
|---|---|
GOST3411Digest()
Standard constructor |
|
GOST3411Digest(GOST3411Digest t)
Copy constructor. |
|
GOST3411Digest(java.lang.String sBoxName)
Constructor with option to choose initialization vector |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public GOST3411Digest()
public GOST3411Digest(java.lang.String sBoxName)
public GOST3411Digest(GOST3411Digest t)
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||