All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class au.net.aba.crypto.provider.SHA0

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

public class SHA0
extends MessageDigest
A class that implements the NIST Secure Hash Algorithm - version 0.


Variable Index

 o DIGEST_LEN
 o ident

Constructor Index

 o SHA0()
basic constructor.

Method Index

 o engineDigest()
compute the digest and reset the engine.
 o engineReset()
reset the digest back to its original state.
 o engineUpdate(byte)
update the digest with a single byte
 o engineUpdate(byte[], int, int)
add a block of data from the array bytes, to the message digest.

Variables

 o ident
 public static final String ident
 o DIGEST_LEN
 public static final int DIGEST_LEN

Constructors

 o SHA0
 public SHA0()
basic constructor.

Methods

 o engineReset
 protected void engineReset()
reset the digest back to its original state.

Overrides:
engineReset in class MessageDigest
 o engineUpdate
 protected synchronized void engineUpdate(byte b)
update the digest with a single byte

Parameters:
b - the byte to be added.
Overrides:
engineUpdate in class MessageDigest
 o engineUpdate
 protected synchronized 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 MessageDigest
 o engineDigest
 protected synchronized byte[] engineDigest()
compute the digest and reset the engine.

Returns:
the digest as a byte array.
Overrides:
engineDigest in class MessageDigest

All Packages  Class Hierarchy  This Package  Previous  Next  Index