Digest
, ExtendedDigest
, Memoable
MD4Digest
, MD5Digest
, RIPEMD128Digest
, RIPEMD160Digest
, RIPEMD256Digest
, RIPEMD320Digest
, SHA1Digest
, SHA224Digest
, SHA256Digest
, SM3Digest
public 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, getDigestSize
protected GeneralDigest()
protected GeneralDigest(GeneralDigest t)
protected GeneralDigest(byte[] encodedState)
protected void copyIn(GeneralDigest t)
public void update(byte in)
Digest
public void update(byte[] in, int inOff, int len)
Digest
public void finish()
public void reset()
Digest
protected void populateState(byte[] state)
public int getByteLength()
ExtendedDigest
getByteLength
in interface ExtendedDigest
protected abstract void processWord(byte[] in, int inOff)
protected abstract void processLength(long bitLength)
protected abstract void processBlock()