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

public final Class MD2

extends DigestBase
Class Inheritance
Imports
java.util.Arrays

Implementation for the MD2 algorithm, see RFC1319. It is very slow and not particular secure. It is only supported to be able to verify RSA/Verisign root certificates signed using MD2withRSA. It should not be used for anything else.
Author
Andreas Sterbenz
Since
1.5

Field Summary

Modifier and TypeField and Description
private int[]
C

private byte[]
private static final byte[][]
private static final int[]
S

private int[]
X

Inherited from sun.security.provider.DigestBase:
blockSizebufferbytesProcessedpadding

Constructor Summary

AccessConstructor and Description
public
MD2()

Create a new MD2 digest.

Method Summary

Modifier and TypeMethod and Description
public Object
clone()

Overrides sun.security.provider.DigestBase.clone.

Returns a clone if the implementation is cloneable.

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

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

Core compression function.

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

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

Return the digest.

pack-priv void
implReset()

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

Reset subclass specific state to their initial values.

Inherited from sun.security.provider.DigestBase:
engineDigestengineDigestengineGetDigestLengthengineResetengineUpdateengineUpdateimplDigestFixedLengthPreprocessed

Field Detail

Cback to summary
private int[] C
cBytesback to summary
private byte[] cBytes
PADDINGback to summary
private static final byte[][] PADDING
Sback to summary
private static final int[] S
Xback to summary
private int[] X

Constructor Detail

MD2back to summary
public MD2()

Create a new MD2 digest. Called by the JCA framework

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.
implCompressback to summary
pack-priv void implCompress(byte[] b, int ofs)

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

Doc from sun.security.provider.DigestBase.implCompress.

Core compression function. Processes blockSize bytes at a time and updates the state of this object.

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

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

Doc from sun.security.provider.DigestBase.implDigest.

Return the digest. Subclasses do not need to reset() themselves, DigestBase calls implReset() when necessary.

implResetback to summary
pack-priv void implReset()

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

Doc from sun.security.provider.DigestBase.implReset.

Reset subclass specific state to their initial values. DigestBase calls this method when necessary.