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
[Expand]
Inherited Methods |
From class
org.bouncycastle.crypto.digests.GeneralDigest
void
|
finish()
|
int
|
getByteLength()
Return the size in bytes of the internal buffer the digest applies it's compression
function to.
|
abstract
void
|
processBlock()
|
abstract
void
|
processLength(long bitLength)
|
abstract
void
|
processWord(byte[] in, int inOff)
|
void
|
reset()
reset the digest back to it's initial state.
|
void
|
update(byte[] in, int inOff, int len)
update the message digest with a block of bytes.
|
void
|
update(byte in)
update the message digest with a single byte.
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
org.bouncycastle.crypto.Digest
abstract
int
|
doFinal(byte[] out, int outOff)
close the digest, producing the final digest value.
|
abstract
String
|
getAlgorithmName()
return the algorithm name
|
abstract
int
|
getDigestSize()
return the size, in bytes, of the digest produced by this message digest.
|
abstract
void
|
reset()
reset the digest back to it's initial state.
|
abstract
void
|
update(byte[] in, int inOff, int len)
update the message digest with a block of bytes.
|
abstract
void
|
update(byte in)
update the message digest with a single byte.
|
|
From interface
org.bouncycastle.crypto.ExtendedDigest
abstract
int
|
getByteLength()
Return the size in bytes of the internal buffer the digest applies it's compression
function to.
|
|
Public Constructors
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)