|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.util.crypto.digests.GeneralDigest
public abstract class GeneralDigest
base implementation of MD4 family style digest as outlined in "Handbook of Applied Cryptography", pages 344 - 347.
Constructor Summary | |
---|---|
protected |
GeneralDigest()
Standard constructor |
protected |
GeneralDigest(GeneralDigest t)
Copy constructor. |
Method Summary | |
---|---|
void |
finish()
|
int |
getByteLength()
Return the size in bytes of the internal buffer the digest applies it's compression function to. |
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.apache.geronimo.util.crypto.Digest |
---|
doFinal, getAlgorithmName, getDigestSize |
Constructor Detail |
---|
protected GeneralDigest()
protected GeneralDigest(GeneralDigest t)
Method Detail |
---|
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
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |