public class

SHA1Digest

extends GeneralDigest
java.lang.Object
   ↳ org.bouncycastle.crypto.digests.GeneralDigest
     ↳ org.bouncycastle.crypto.digests.SHA1Digest

Class Overview

implementation of SHA-1 as outlined in "Handbook of Applied Cryptography", pages 346 - 349. It is interesting to ponder why the, apart from the extra IV, the other difference here from MD5 is the "endienness" of the word processing!

Summary

Public Constructors
SHA1Digest()
Standard constructor
SHA1Digest(SHA1Digest t)
Copy constructor.
Public Methods
int doFinal(byte[] out, int outOff)
String getAlgorithmName()
int getDigestSize()
void reset()
reset the chaining variables
Protected Methods
void processBlock()
void processLength(long bitLength)
void processWord(byte[] in, int inOff)
[Expand]
Inherited Methods
From class org.bouncycastle.crypto.digests.GeneralDigest
From class java.lang.Object
From interface org.bouncycastle.crypto.Digest
From interface org.bouncycastle.crypto.ExtendedDigest

Public Constructors

public SHA1Digest ()

Standard constructor

public SHA1Digest (SHA1Digest t)

Copy constructor. This will copy the state of the provided message digest.

Public Methods

public int doFinal (byte[] out, int outOff)

public String getAlgorithmName ()

public int getDigestSize ()

public void reset ()

reset the chaining variables

Protected Methods

protected void processBlock ()

protected void processLength (long bitLength)

protected void processWord (byte[] in, int inOff)