jonelo.jacksum.adapt.gnu.crypto.hash

Class Tiger


public class Tiger
extends BaseHash

The Tiger message digest. Tiger was designed by Ross Anderson and Eli Biham, with the goal of producing a secure, fast hash function that performs especially well on next-generation 64-bit architectures, but is still efficient on 32- and 16-bit architectures.

Tiger processes data in 512-bit blocks and produces a 192-bit digest.

References:

  1. Tiger: A Fast New Hash Function, Ross Anderson and Eli Biham.

Field Summary

protected static int
BLOCK_SIZE
protected static int
HASH_SIZE
protected long
a
protected long
b
protected long
c
protected static Boolean
valid

Constructor Summary

Tiger()
Trivial 0-arguments constructor.

Method Summary

Object
clone()
protected byte[]
getResult()
protected byte[]
padBuffer()
protected void
resetContext()
boolean
selfTest()
protected void
transform(byte[] in, int offset)

Field Details

BLOCK_SIZE

protected static final int BLOCK_SIZE
Field Value:
64

HASH_SIZE

protected static final int HASH_SIZE
Field Value:
24

a

protected long a

b

protected long b

c

protected long c

valid

protected static Boolean valid

Constructor Details

Tiger

public Tiger()
Trivial 0-arguments constructor.

Method Details

clone

public Object clone()

getResult

protected byte[] getResult()

padBuffer

protected byte[] padBuffer()

resetContext

protected void resetContext()

selfTest

public boolean selfTest()

transform

protected void transform(byte[] in,
                         int offset)