public abstract class LongDigest extends Object implements ExtendedDigest, Memoable, EncodableDigest
| Modifier and Type | Field and Description |
|---|---|
protected long | H1Hash working variables H1-H8. |
protected long | H2Hash working variables H1-H8. |
protected long | H3Hash working variables H1-H8. |
protected long | H4Hash working variables H1-H8. |
protected long | H5Hash working variables H1-H8. |
protected long | H6Hash working variables H1-H8. |
protected long | H7Hash working variables H1-H8. |
protected long | H8Hash working variables H1-H8. |
(package private) static long[] | KSHA-384 and SHA-512 constants (first 64 bits of fractional parts of cube roots of first 64 primes) |
protected CryptoServicePurpose | purposeCrypto operation 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)copyIn. |
protected abstract CryptoServiceProperties | cryptoServiceProperties()Returns the properties for the crypto service. |
void | finish()finish. |
int | getByteLength()getByteLength. |
protected int | getEncodedStateSize()Returns the size of the encoded state. |
protected void | populateState(byte[] state)populateState. |
protected void | processBlock()processBlock. |
protected void | processLength(long lowW,
long hiW)Process the bit length data. |
protected void | processWord(byte[] in,
int inOff)Process a word of input data. |
void | reset()reset. |
protected void | restoreState(byte[] encodedState)restoreState. |
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, waitdoFinal, getAlgorithmName, getDigestSizegetEncodedStateprotected long H1
protected long H2
protected long H3
protected long H4
protected long H5
protected long H6
protected long H7
protected long H8
static final long[] K
protected final CryptoServicePurpose purpose
protected LongDigest()
protected LongDigest(CryptoServicePurpose purpose)
purpose - the crypto service purposeprotected LongDigest(LongDigest t)
t - the digest to copyprotected void copyIn(LongDigest t)
t - the digest to copy state fromprotected abstract CryptoServiceProperties cryptoServiceProperties()
public void finish()
public int getByteLength()
getByteLength in interface ExtendedDigestprotected int getEncodedStateSize()
protected void populateState(byte[] state)
state - the encoded state to populate fromprotected void processBlock()
protected void processLength(long lowW,
long hiW)lowW - low word of the bit lengthhiW - high word of the bit lengthprotected void processWord(byte[] in,
int inOff)in - the input bytesinOff - the offset into the input arrayprotected void restoreState(byte[] encodedState)
encodedState - the encoded state to restore frompublic void update(byte in)
Digestpublic void update(byte[] in,
int inOff,
int len)Digest