org.bouncycastle.crypto.digests

Class TigerDigest

Implemented Interfaces:
Digest, ExtendedDigest

public class TigerDigest
extends java.lang.Object
implements ExtendedDigest

implementation of Tiger based on: http://www.cs.technion.ac.il/~biham/Reports/Tiger

Constructor Summary

TigerDigest()
Standard constructor
TigerDigest(TigerDigest t)
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()
void
reset()
reset the chaining variables
void
unpackWord(long r, byte[] out, int outOff)
void
update(byte in)
void
update(byte[] in, int inOff, int len)

Constructor Details

TigerDigest

public TigerDigest()
Standard constructor

TigerDigest

public TigerDigest(TigerDigest t)
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

reset

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

unpackWord

public void unpackWord(long r,
                       byte[] out,
                       int outOff)

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