iaik.me.security.md
Class MD2

java.lang.Object
  |
  +--iaik.me.security.MessageDigest
        |
        +--iaik.me.security.md.MD2

public class MD2
extends MessageDigest


Fields inherited from class iaik.me.security.MessageDigest
buffer, count, digestLength, padding
 
Constructor Summary
MD2()
           
 
Method Summary
 Object clone()
          Returns a clone of this MD2 Object.
protected  void compress(byte[] input, int offset)
          The heart of MD2.
 int digest(byte[] output, int offset)
          SPI: Returns the result of this hash computation and resets this MD2 message digest object for being supplied with new data to be hashed.
 byte[][] getEncodedDigestInfo()
          Returns the pregenerated ASN1 encoding of the DigestInfo structure for the corresponding digest algorithm, see .
 void reset()
          SPI: Resets this MD2 message digest object for being supplied with new data.
 
Methods inherited from class iaik.me.security.MessageDigest
digest, digest, getAlgorithm, getDigestLength, getInstance, register, update, update, update
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MD2

public MD2()
Method Detail

reset

public void reset()
SPI: Resets this MD2 message digest object for being supplied with new data.

This method is called after the actual hash computation has been finished to automatically reset the message digest object for being supplied with new data for starting a new hash computation.

Overrides:
reset in class MessageDigest

clone

public Object clone()
Returns a clone of this MD2 Object.
Overrides:
clone in class MessageDigest
Returns:
a clone of this MD2 Object

digest

public int digest(byte[] output,
                  int offset)
SPI: Returns the result of this hash computation and resets this MD2 message digest object for being supplied with new data to be hashed.
Overrides:
digest in class MessageDigest
Returns:
a byte array holding the calculated hash value

compress

protected void compress(byte[] input,
                        int offset)
The heart of MD2.
Overrides:
compress in class MessageDigest

getEncodedDigestInfo

public byte[][] getEncodedDigestInfo()
Description copied from class: MessageDigest
Returns the pregenerated ASN1 encoding of the DigestInfo structure for the corresponding digest algorithm, see . The digest value is of course NOT included. The two dimensional array cotains the enconding with (index = 0) and without the ASN1 parameter NULL (index = 1).
Overrides:
getEncodedDigestInfo in class MessageDigest
Following copied from class: iaik.me.security.MessageDigest
Returns:
a two dimensional byte array containing the digestinfo encodings

This Javadoc may contain text parts from IETF Internet Standard specifications, see copyright note) and RSA Data Security Public-Key Cryptography Standards (see copyright note).

IAIK-JCE ME 3.04, (c) 2002 IAIK, (c) 2003 to 2006 Stiftung SIC