|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.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 | |
---|---|
abstract int |
doFinal(byte[] out,
int outOff)
close the digest, producing the final digest value. |
void |
finish()
|
abstract java.lang.String |
getAlgorithmName()
return the algorithm name |
abstract int |
getDigestSize()
return the size, in bytes, of the digest produced by this message digest. |
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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected GeneralDigest()
protected GeneralDigest(GeneralDigest t)
t
- Method Detail |
---|
public void update(byte in)
Digest
update
in interface Digest
in
- public void update(byte[] in, int inOff, int len)
Digest
update
in interface Digest
in
- inOff
- len
- public void finish()
public void reset()
Digest
reset
in interface Digest
protected abstract void processWord(byte[] in, int inOff)
in
- inOff
- protected abstract void processLength(long bitLength)
bitLength
- protected abstract void processBlock()
public abstract int doFinal(byte[] out, int outOff)
Digest
doFinal
in interface Digest
out
- the array the digest is to be copied into.outOff
- the offset into the out array the digest is to start at.public abstract int getDigestSize()
Digest
getDigestSize
in interface Digest
public abstract java.lang.String getAlgorithmName()
Digest
getAlgorithmName
in interface Digest
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |