org.bouncycastle.crypto.digests

Class MD5Digest

public class MD5Digest extends GeneralDigest

implementation of MD5 as outlined in "Handbook of Applied Cryptography", pages 346 - 347.
Constructor Summary
MD5Digest()
Standard constructor
MD5Digest(MD5Digest t)
Copy constructor.
Method Summary
intdoFinal(byte[] out, int outOff)
StringgetAlgorithmName()
intgetDigestSize()
protected voidprocessBlock()
protected voidprocessLength(long bitLength)
protected voidprocessWord(byte[] in, int inOff)
voidreset()
reset the chaining variables to the IV values.

Constructor Detail

MD5Digest

public MD5Digest()
Standard constructor

MD5Digest

public MD5Digest(MD5Digest t)
Copy constructor. This will copy the state of the provided message digest.

Method Detail

doFinal

public int doFinal(byte[] out, int outOff)

getAlgorithmName

public String getAlgorithmName()

getDigestSize

public int getDigestSize()

processBlock

protected void processBlock()

processLength

protected void processLength(long bitLength)

processWord

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

reset

public void reset()
reset the chaining variables to the IV values.