jonelo.jacksum.adapt.gnu.crypto.hash

Class MD4


public class MD4
extends BaseHash

An implementation of Ron Rivest's MD4 message digest algorithm.

MD4 was the precursor to the stronger gnu.crypto.hash.MD5 algorithm, and while not considered cryptograpically secure itself, MD4 is in use in various applications. It is slightly faster than MD5.

References:

  1. The MD4 Message-Digest Algorithm.
    R. Rivest.

Constructor Summary

MD4()
Public constructor.

Method Summary

Object
clone()
protected byte[]
getResult()
protected byte[]
padBuffer()
protected void
resetContext()
boolean
selfTest()
protected void
transform(byte[] in, int i)

Constructor Details

MD4

public MD4()
Public constructor. Initializes the chaining variables, sets the byte count to 0, and creates a new block of 512 bits.

Method Details

clone

public Object clone()

getResult

protected byte[] getResult()

padBuffer

protected byte[] padBuffer()

resetContext

protected void resetContext()

selfTest

public boolean selfTest()

transform

protected void transform(byte[] in,
                         int i)