Known Direct Subclasses
MD4Digest |
implementation of MD4 as RFC 1320 by R. |
MD5Digest |
implementation of MD5 as outlined in "Handbook of Applied Cryptography", pages 346 - 347. |
RIPEMD128Digest |
implementation of RIPEMD128
|
RIPEMD160Digest |
implementation of RIPEMD see,
http://www.esat.kuleuven.ac.be/~bosselae/ripemd160.html
|
RIPEMD256Digest |
implementation of RIPEMD256. |
RIPEMD320Digest |
implementation of RIPEMD 320. |
SHA1Digest |
implementation of SHA-1 as outlined in "Handbook of Applied Cryptography", pages 346 - 349. |
SHA224Digest |
SHA-224 as described in RFC 3874
block word digest
SHA-1 512 32 160
SHA-224 512 32 224
SHA-256 512 32 256
SHA-384 1024 64 384
SHA-512 1024 64 512
|
SHA256Digest |
FIPS 180-2 implementation of SHA-256. |
|
Class Overview
base implementation of MD4 family style digest as outlined in
"Handbook of Applied Cryptography", pages 344 - 347.
Summary
Public Methods |
void
|
finish()
|
int
|
getByteLength()
Return the size in bytes of the internal buffer the digest applies it's compression
function to.
|
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.
|
[Expand]
Inherited Methods |
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.
|
|
Protected Constructors
protected
GeneralDigest
()
protected
GeneralDigest
(GeneralDigest t)
Copy constructor. We are using copy constructors in place
of the Object.clone() interface as this interface is not
supported by J2ME.
Public Methods
public
int
getByteLength
()
Return the size in bytes of the internal buffer the digest applies it's compression
function to.
Returns
- byte length of the digests internal buffer.
public
void
reset
()
reset the digest back to it's initial state.
public
void
update
(byte[] in, int inOff, int len)
update the message digest with a block of bytes.
Parameters
in
| the byte array containing the data. |
inOff
| the offset into the byte array where the data starts. |
len
| the length of the data.
|
public
void
update
(byte in)
update the message digest with a single byte.
Parameters
in
| the input byte to be entered.
|
Protected Methods
protected
abstract
void
processBlock
()
protected
abstract
void
processLength
(long bitLength)
protected
abstract
void
processWord
(byte[] in, int inOff)