All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.provider.md.MD2

java.lang.Object
   |
   +----java.security.MessageDigest
           |
           +----cryptix.provider.md.MD2

public synchronized class MD2
extends MessageDigest
implements Cloneable
Implements the MD2 message digest algorithm in Java as per RFC-1319 --Burton S. Kaliski Jr.

$Revision: 1.1.1.1 $

Author:
Raif S. Naffah

Constructor Index

 o MD2()

Method Index

 o clone()
Returns a copy of this MD object.
 o engineDigest()
Completes the hash computation by performing final operations such as padding.
 o engineReset()
Resets this object disregarding any temporary data present at the time of the invocation of this call.
 o engineUpdate(byte)
Continues an MD2 message digest using the input byte.
 o engineUpdate(byte[], int, int)
MD2 block update operation.

Constructors

 o MD2
 public MD2()

Methods

 o clone
 public Object clone()
Returns a copy of this MD object.

Overrides:
clone in class MessageDigest
 o engineReset
 public void engineReset()
Resets this object disregarding any temporary data present at the time of the invocation of this call.

Overrides:
engineReset in class MessageDigest
 o engineUpdate
 public void engineUpdate(byte input)
Continues an MD2 message digest using the input byte.

Overrides:
engineUpdate in class MessageDigest
 o engineUpdate
 public void engineUpdate(byte input[],
                          int offset,
                          int len)
MD2 block update operation.

Continues an MD2 message digest operation, by filling the buffer, transform(ing) data in 128-bit message block(s), updating the variables context and count, and leaving (buffering) the remaining bytes in buffer for the next update or finish.

Parameters:
input - input block
offset - start of meaningful bytes in input
len - count of bytes in input block to consider
Overrides:
engineUpdate in class MessageDigest
 o engineDigest
 public byte[] engineDigest()
Completes the hash computation by performing final operations such as padding. At the return of this engineDigest, the MD engine is reset.

Returns:
the array of bytes for the resulting hash value.
Overrides:
engineDigest in class MessageDigest

All Packages  Class Hierarchy  This Package  Previous  Next  Index