org.bouncycastle.crypto.digests

Class GeneralDigest

public abstract class GeneralDigest extends Object implements ExtendedDigest

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
voidfinish()
intgetByteLength()
protected abstract voidprocessBlock()
protected abstract voidprocessLength(long bitLength)
protected abstract voidprocessWord(byte[] in, int inOff)
voidreset()
voidupdate(byte in)
voidupdate(byte[] in, int inOff, int len)

Constructor Detail

GeneralDigest

protected GeneralDigest()
Standard constructor

GeneralDigest

protected GeneralDigest(GeneralDigest t)
Copy constructor. We are using copy constructors in place of the Object.clone() interface as this interface is not supported by J2ME.

Method Detail

finish

public void finish()

getByteLength

public int getByteLength()

processBlock

protected abstract void processBlock()

processLength

protected abstract void processLength(long bitLength)

processWord

protected abstract void processWord(byte[] in, int inOff)

reset

public void reset()

update

public void update(byte in)

update

public void update(byte[] in, int inOff, int len)