au.net.aba.crypto.provider
Class MD5

java.lang.Object
  |
  +--java.security.MessageDigestSpi
        |
        +--java.security.MessageDigest
              |
              +--au.net.aba.crypto.provider.MD5

public class MD5
extends java.security.MessageDigest

A class that implements the RSA Data Security, Inc. MD5 message-digest algorithm.


Field Summary
static java.lang.String ident
           
 
Constructor Summary
MD5()
          This constructor is used to begin a new MD5 operation.
 
Method Summary
protected  byte[] engineDigest()
          compute the digest and reset the engine.
protected  void engineReset()
          reset the digest back to its original state.
protected  void engineUpdate(byte b)
          update the digest with a single byte
protected  void engineUpdate(byte[] bytes, int offset, int length)
          add a block of data from the array bytes to the message digest.
 
Methods inherited from class java.security.MessageDigest
clone, digest, digest, digest, getAlgorithm, getDigestLength, getInstance, getInstance, getProvider, isEqual, reset, toString, update, update, update
 
Methods inherited from class java.security.MessageDigestSpi
engineDigest, engineGetDigestLength
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ident

public static final java.lang.String ident
Constructor Detail

MD5

public MD5()
This constructor is used to begin a new MD5 operation.
Method Detail

engineReset

protected void engineReset()
reset the digest back to its original state.
Overrides:
engineReset in class java.security.MessageDigestSpi

engineUpdate

protected void engineUpdate(byte b)
update the digest with a single byte
Parameters:
b - the byte to be added.
Overrides:
engineUpdate in class java.security.MessageDigestSpi

engineUpdate

protected void engineUpdate(byte[] bytes,
                            int offset,
                            int length)
add a block of data from the array bytes to the message digest. The block starts offset bytes into the array, and is of size length.
Parameters:
bytes - the byte array.
offset - offset into the array to start from.
length - size of the block.
Overrides:
engineUpdate in class java.security.MessageDigestSpi

engineDigest

protected byte[] engineDigest()
compute the digest and reset the engine.
Returns:
a byte array containing the message digest.
Overrides:
engineDigest in class java.security.MessageDigestSpi