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 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.

Version: $Revision: 1.6 $

Author: Casey Marshall (rsdio@metastatic.org)

Constructor Summary
MD4()

Public constructor.

Method Summary
Objectclone()
protected byte[]getResult()
protected byte[]padBuffer()
protected voidresetContext()
booleanselfTest()
protected voidtransform(byte[] in, int i)

Constructor Detail

MD4

public MD4()

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

Method Detail

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)
Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.