All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Acme.Crypto.ShaHash

java.lang.Object
   |
   +----Acme.Crypto.CryptoUtils
           |
           +----Acme.Crypto.Hash
                   |
                   +----Acme.Crypto.ShaHash

public class ShaHash
extends Hash
The Secure Hash Algorithm.

This is surprisingly fast, processing 28000 bytes per second on a SPARC Ultra.

Fetch the software.
Fetch the entire Acme package.


Constructor Index

 o ShaHash()
Constructor.

Method Index

 o add(byte)
Add a byte to the hash.
 o add(byte[], int, int)
Add some bytes to the hash.
 o main(String[])
 o prepare()
Prepare the hash bytes for use.
 o reset()
Initialize (reset) the hash.

Constructors

 o ShaHash
 public ShaHash()
Constructor.

Methods

 o reset
 public void reset()
Initialize (reset) the hash.

Overrides:
reset in class Hash
 o add
 public void add(byte b)
Add a byte to the hash.

Overrides:
add in class Hash
 o add
 public void add(byte data[],
                 int off,
                 int len)
Add some bytes to the hash.

Overrides:
add in class Hash
 o prepare
 protected void prepare()
Prepare the hash bytes for use.

Overrides:
prepare in class Hash
 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs