APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.provider

public final Class MD4

extends DigestBase
Class Inheritance
Imports
java.security.*

The MD4 class is used to compute an MD4 message digest over a given buffer of bytes. It is an implementation of the RSA Data Security Inc MD4 algorithm as described in internet RFC 1320.

The MD4 algorithm is very weak and should not be used unless it is unavoidable. Therefore, it is not registered in our standard providers. To obtain an implementation, call the static getInstance() method in this class.

Author
Andreas Sterbenz

Field Summary

Modifier and TypeField and Description
private static final Provider
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private int[]
Inherited from sun.security.provider.DigestBase:
blockSizebufferbytesProcessedpadding

Constructor Summary

AccessConstructor and Description
public
MD4()

Method Summary

Modifier and TypeMethod and Description
public Object
clone()

Overrides sun.security.provider.DigestBase.clone.

Returns a clone if the implementation is cloneable.

private static int
FF(int a, int b, int c, int d, int x, int s)

public static MessageDigest
private static int
GG(int a, int b, int c, int d, int x, int s)

private static int
HH(int a, int b, int c, int d, int x, int s)

pack-priv void
implCompress(byte[] buf, int ofs)

Implements abstract sun.security.provider.DigestBase.implCompress.

This is where the functions come together as the generic MD4 transformation operation.

pack-priv void
implDigest(byte[] out, int ofs)

Implements abstract sun.security.provider.DigestBase.implDigest.

Perform the final computations, any buffered bytes are added to the digest, the count is added to the digest, and the resulting digest is stored.

pack-priv void
implReset()

Implements abstract sun.security.provider.DigestBase.implReset.

Reset the state of this object.

private void
Inherited from sun.security.provider.DigestBase:
engineDigestengineDigestengineGetDigestLengthengineResetengineUpdateengineUpdateimplDigestFixedLengthPreprocessed

Field Detail

md4Providerback to summary
private static final Provider md4Provider
S11back to summary
private static final int S11
S12back to summary
private static final int S12
S13back to summary
private static final int S13
S14back to summary
private static final int S14
S21back to summary
private static final int S21
S22back to summary
private static final int S22
S23back to summary
private static final int S23
S24back to summary
private static final int S24
S31back to summary
private static final int S31
S32back to summary
private static final int S32
S33back to summary
private static final int S33
S34back to summary
private static final int S34
stateback to summary
private int[] state

Constructor Detail

MD4back to summary
public MD4()

Method Detail

cloneback to summary
public Object clone() throws CloneNotSupportedException

Overrides sun.security.provider.DigestBase.clone.

Doc from java.security.MessageDigestSpi.clone.

Returns a clone if the implementation is cloneable.

Exceptions
CloneNotSupportedException:
if this is called on an implementation that does not support Cloneable.
FFback to summary
private static int FF(int a, int b, int c, int d, int x, int s)
getInstanceback to summary
public static MessageDigest getInstance() throws NoSuchAlgorithmException
GGback to summary
private static int GG(int a, int b, int c, int d, int x, int s)
HHback to summary
private static int HH(int a, int b, int c, int d, int x, int s)
implCompressback to summary
pack-priv void implCompress(byte[] buf, int ofs)

Implements abstract sun.security.provider.DigestBase.implCompress.

This is where the functions come together as the generic MD4 transformation operation. It consumes sixteen bytes from the buffer, beginning at the specified offset.

implDigestback to summary
pack-priv void implDigest(byte[] out, int ofs)

Implements abstract sun.security.provider.DigestBase.implDigest.

Perform the final computations, any buffered bytes are added to the digest, the count is added to the digest, and the resulting digest is stored.

implResetback to summary
pack-priv void implReset()

Implements abstract sun.security.provider.DigestBase.implReset.

Reset the state of this object.

resetHashesback to summary
private void resetHashes()