org.bouncycastle.crypto.digests

Class TigerDigest

Implemented Interfaces:
Digest

public class TigerDigest
extends java.lang.Object
implements Digest

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
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


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