|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.crypto.digests.LongDigest
public abstract class LongDigest
Base class for SHA-384 and SHA-512.
Field Summary | |
---|---|
private static int |
BYTE_LENGTH
|
private long |
byteCount1
|
private long |
byteCount2
|
protected long |
H1
|
protected long |
H2
|
protected long |
H3
|
protected long |
H4
|
protected long |
H5
|
protected long |
H6
|
protected long |
H7
|
protected long |
H8
|
(package private) static long[] |
K
|
private long[] |
W
|
private int |
wOff
|
private byte[] |
xBuf
|
private int |
xBufOff
|
Constructor Summary | |
---|---|
protected |
LongDigest()
Constructor for variable length word |
protected |
LongDigest(LongDigest t)
Copy constructor. |
Method Summary | |
---|---|
private void |
adjustByteCounts()
adjust the byte counts so that byteCount2 represents the upper long (less 3 bits) word of the byte count. |
private long |
Ch(long x,
long y,
long z)
|
void |
finish()
|
int |
getByteLength()
Return the size in bytes of the internal buffer the digest applies it's compression function to. |
private long |
Maj(long x,
long y,
long z)
|
protected void |
processBlock()
|
protected void |
processLength(long lowW,
long hiW)
|
protected void |
processWord(byte[] in,
int inOff)
|
void |
reset()
reset the digest back to it's initial state. |
private long |
Sigma0(long x)
|
private long |
Sigma1(long x)
|
private long |
Sum0(long x)
|
private long |
Sum1(long x)
|
protected void |
unpackWord(long word,
byte[] out,
int outOff)
|
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 |
Methods inherited from interface org.bouncycastle.crypto.Digest |
---|
doFinal, getAlgorithmName, getDigestSize |
Field Detail |
---|
private static final int BYTE_LENGTH
private byte[] xBuf
private int xBufOff
private long byteCount1
private long byteCount2
protected long H1
protected long H2
protected long H3
protected long H4
protected long H5
protected long H6
protected long H7
protected long H8
private long[] W
private int wOff
static final long[] K
Constructor Detail |
---|
protected LongDigest()
protected LongDigest(LongDigest t)
Method Detail |
---|
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.public void finish()
public void reset()
Digest
reset
in interface Digest
public int getByteLength()
ExtendedDigest
getByteLength
in interface ExtendedDigest
protected void processWord(byte[] in, int inOff)
protected void unpackWord(long word, byte[] out, int outOff)
private void adjustByteCounts()
protected void processLength(long lowW, long hiW)
protected void processBlock()
private long Ch(long x, long y, long z)
private long Maj(long x, long y, long z)
private long Sum0(long x)
private long Sum1(long x)
private long Sigma0(long x)
private long Sigma1(long x)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |