|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.crypto.digests.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 BlockCipher |
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. |
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)
close the digest, producing the final digest value. |
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()
return the algorithm name |
int |
getByteLength()
Return the size in bytes of the internal buffer the digest applies it's compression function to. |
int |
getDigestSize()
return the size, in bytes, of the digest produced by this message digest. |
private void |
LongToBytes(long r,
byte[] out,
int outOff)
|
private byte[] |
P(byte[] in)
|
protected void |
processBlock(byte[] in,
int inOff)
|
void |
reset()
reset the digest back to it's initial state. |
private void |
sumByteArray(byte[] in)
|
void |
update(byte in)
update the message digest with a single byte. |
void |
update(byte[] in,
int inOff,
int len)
update the message digest with a block of bytes. |
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 BlockCipher 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(GOST3411Digest t)
Method Detail |
---|
public java.lang.String getAlgorithmName()
Digest
getAlgorithmName
in interface Digest
public int getDigestSize()
Digest
getDigestSize
in interface Digest
public void update(byte in)
Digest
update
in interface Digest
in
- the input byte to be entered.public void update(byte[] in, int inOff, int len)
Digest
update
in interface Digest
in
- the byte array containing the data.inOff
- the offset into the byte array where the data starts.len
- the length of the data.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)
Digest
doFinal
in interface Digest
out
- the array the digest is to be copied into.outOff
- the offset into the out array the digest is to start at.public void reset()
Digest
reset
in interface Digest
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()
ExtendedDigest
getByteLength
in interface ExtendedDigest
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |