public abstract class LongDigest extends java.lang.Object implements SavableDigest
Modifier and Type | Field and Description |
---|---|
protected long |
H1 |
protected long |
H2 |
protected long |
H3 |
protected long |
H4 |
protected long |
H5 |
protected long |
H6 |
protected long |
H7 |
protected long |
H8 |
protected CryptoServicePurpose |
purpose |
Modifier | Constructor and Description |
---|---|
protected |
LongDigest()
Constructor for variable length word
|
protected |
LongDigest(CryptoServicePurpose purpose)
Constructor for variable length word
|
protected |
LongDigest(LongDigest t)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
copyIn(LongDigest t) |
protected abstract CryptoServiceProperties |
cryptoServiceProperties() |
void |
finish() |
int |
getByteLength()
Return the size in bytes of the internal buffer the digest applies it's compression
function to.
|
protected int |
getEncodedStateSize() |
protected void |
populateState(byte[] state) |
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.
|
protected void |
restoreState(byte[] encodedState) |
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
getEncodedState
protected final CryptoServicePurpose purpose
protected long H1
protected long H2
protected long H3
protected long H4
protected long H5
protected long H6
protected long H7
protected long H8
protected LongDigest()
protected LongDigest(CryptoServicePurpose purpose)
protected LongDigest(LongDigest t)
protected void copyIn(LongDigest t)
protected void populateState(byte[] state)
protected void restoreState(byte[] encodedState)
protected int getEncodedStateSize()
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)
protected void processLength(long lowW, long hiW)
protected void processBlock()
protected abstract CryptoServiceProperties cryptoServiceProperties()