|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.crypto.digests.GeneralDigest
base implementation of MD4 family style digest as outlined in "Handbook of Applied Cryptography", pages 344 - 347.
Field Summary | |
protected CryptoServicePurpose |
purpose
|
Constructor Summary | |
protected |
GeneralDigest()
Standard constructor |
protected |
GeneralDigest(byte[] encodedState)
|
protected |
GeneralDigest(CryptoServicePurpose purpose)
|
protected |
GeneralDigest(GeneralDigest t)
Copy constructor. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.bouncycastle.crypto.Digest |
doFinal, getAlgorithmName, getDigestSize |
Methods inherited from interface org.bouncycastle.util.Memoable |
copy, reset |
Field Detail |
protected final CryptoServicePurpose purpose
Constructor Detail |
protected GeneralDigest()
protected GeneralDigest(CryptoServicePurpose purpose)
protected GeneralDigest(GeneralDigest t)
protected GeneralDigest(byte[] encodedState)
Method Detail |
protected void copyIn(GeneralDigest t)
public void update(byte in)
Digest
update
in interface Digest
in
- the input byte to be entered.public void update(byte[] in, int inOff, int len)
Digest
update
in interface Digest
in
- the byte array containing the data.inOff
- the offset into the byte array where the data starts.len
- the length of the data.public void finish()
public void reset()
Digest
reset
in interface 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()
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |