org.bouncycastle.crypto.digests

Class WhirlpoolDigest

Implemented Interfaces:
Digest, ExtendedDigest

public final class WhirlpoolDigest
extends java.lang.Object
implements ExtendedDigest

Implementation of WhirlpoolDigest, based on Java source published by Barreto and Rijmen.

Constructor Summary

WhirlpoolDigest()
WhirlpoolDigest(WhirlpoolDigest originalDigest)
Copy constructor.

Method Summary

int
doFinal(byte[] out, int outOff)
String
getAlgorithmName()
int
getByteLength()
Return the size in bytes of the internal buffer the digest applies it's compression function to.
int
getDigestSize()
protected void
processBlock()
void
reset()
reset the chaining variables
void
update(byte in)
void
update(byte[] in, int inOff, int len)

Constructor Details

WhirlpoolDigest

public WhirlpoolDigest()

WhirlpoolDigest

public WhirlpoolDigest(WhirlpoolDigest originalDigest)
Copy constructor. This will copy the state of the provided message digest.

Method Details

doFinal

public int doFinal(byte[] out,
                   int outOff)
Specified by:
doFinal in interface Digest

getAlgorithmName

public String getAlgorithmName()
Specified by:
getAlgorithmName in interface Digest

getByteLength

public int getByteLength()
Return the size in bytes of the internal buffer the digest applies it's compression function to.
Specified by:
getByteLength in interface ExtendedDigest
Returns:
byte length of the digests internal buffer.

getDigestSize

public int getDigestSize()
Specified by:
getDigestSize in interface Digest

processBlock

protected void processBlock()

reset

public void reset()
reset the chaining variables
Specified by:
reset in interface Digest

update

public void update(byte in)
Specified by:
update in interface Digest

update

public void update(byte[] in,
                   int inOff,
                   int len)
Specified by:
update in interface Digest