Digest, ExtendedDigest, MemoableMD4Digest, MD5Digest, RIPEMD128Digest, RIPEMD160Digest, RIPEMD256Digest, RIPEMD320Digest, SHA1Digest, SHA224Digest, SHA256Digest, SM3Digestpublic abstract class GeneralDigest extends java.lang.Object implements ExtendedDigest, Memoable
| Modifier | Constructor | Description |
|---|---|---|
protected |
GeneralDigest() |
Standard constructor
|
protected |
GeneralDigest(byte[] encodedState) |
|
protected |
GeneralDigest(GeneralDigest t) |
Copy constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
copyIn(GeneralDigest t) |
|
void |
finish() |
|
int |
getByteLength() |
Return the size in bytes of the internal buffer the digest applies it's compression
function to.
|
protected void |
populateState(byte[] state) |
|
protected abstract void |
processBlock() |
|
protected abstract void |
processLength(long bitLength) |
|
protected abstract void |
processWord(byte[] in,
int inOff) |
|
void |
reset() |
reset the digest back to it's initial state.
|
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.
|
doFinal, getAlgorithmName, getDigestSizeprotected GeneralDigest()
protected GeneralDigest(GeneralDigest t)
protected GeneralDigest(byte[] encodedState)
protected void copyIn(GeneralDigest t)
public void update(byte in)
Digestpublic void update(byte[] in,
int inOff,
int len)
Digestpublic void finish()
public void reset()
Digestprotected void populateState(byte[] state)
public int getByteLength()
ExtendedDigestgetByteLength in interface ExtendedDigestprotected abstract void processWord(byte[] in,
int inOff)
protected abstract void processLength(long bitLength)
protected abstract void processBlock()