public abstract class LongDigest extends java.lang.Object implements ExtendedDigest
Modifier and Type | Field and Description |
---|---|
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 |
Modifier | Constructor and Description |
---|---|
protected |
LongDigest()
Constructor for variable length word
|
protected |
LongDigest(LongDigest t)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
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) |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doFinal, getAlgorithmName, getDigestSize
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
protected LongDigest()
protected LongDigest(LongDigest t)
public void update(byte in)
Digest
public void update(byte[] in, int inOff, int len)
Digest
public void finish()
public void reset()
Digest
public int getByteLength()
ExtendedDigest
getByteLength
in interface ExtendedDigest
protected void processWord(byte[] in, int inOff)
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)