public class

TigerDigest

extends Object
implements ExtendedDigest
java.lang.Object
   ↳ org.bouncycastle.crypto.digests.TigerDigest

Class Overview

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

Summary

Public Constructors
TigerDigest()
Standard constructor
TigerDigest(TigerDigest t)
Copy constructor.
Public Methods
int doFinal(byte[] out, int outOff)
close the digest, producing the final digest value.
String getAlgorithmName()
return the algorithm name
int getByteLength()
Return the size in bytes of the internal buffer the digest applies it's compression function to.
int getDigestSize()
return the size, in bytes, of the digest produced by this message digest.
void reset()
reset the chaining variables
void unpackWord(long r, byte[] out, int outOff)
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
From interface org.bouncycastle.crypto.Digest
From interface org.bouncycastle.crypto.ExtendedDigest

Public Constructors

public TigerDigest ()

Standard constructor

public TigerDigest (TigerDigest t)

Copy constructor. This will copy the state of the provided message digest.

Public Methods

public int doFinal (byte[] out, int outOff)

close the digest, producing the final digest value. The doFinal call leaves the digest reset.

Parameters
out the array the digest is to be copied into.
outOff the offset into the out array the digest is to start at.

public String getAlgorithmName ()

return the algorithm name

Returns
  • the algorithm name

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 int getDigestSize ()

return the size, in bytes, of the digest produced by this message digest.

Returns
  • the size, in bytes, of the digest produced by this message digest.

public void reset ()

reset the chaining variables

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

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.