public abstract class GeneralDigest extends java.lang.Object implements ExtendedDigest, Memoable
Modifier and Type | Field and Description |
---|---|
protected CryptoServicePurpose |
purpose |
Modifier | Constructor and Description |
---|---|
protected |
GeneralDigest()
Standard constructor
|
protected |
GeneralDigest(byte[] encodedState) |
protected |
GeneralDigest(CryptoServicePurpose purpose) |
protected |
GeneralDigest(GeneralDigest t)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
copyIn(GeneralDigest 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 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doFinal, getAlgorithmName, getDigestSize
protected final CryptoServicePurpose purpose
protected GeneralDigest()
protected GeneralDigest(CryptoServicePurpose purpose)
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()
protected abstract CryptoServiceProperties cryptoServiceProperties()