Top Description Fields Constructors Methods
org.bouncycastle.crypto.general

pack-priv Class TigerDigest

extends Object
implements ExtendedDigest, Memoable
Class Inheritance
All Implemented Interfaces
org.bouncycastle.util.Memoable, org.bouncycastle.crypto.internal.ExtendedDigest, org.bouncycastle.crypto.internal.Digest
Imports
org.bouncycastle.crypto.internal.ExtendedDigest, org.bouncycastle.util.Memoable

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

Field Summary

Modifier and TypeField and Description
private long
a

private long
b

private int
private byte[]
private static final int
private long
private long
c

private static final int
private static final long[]
private static final long[]
private static final long[]
private static final long[]
private long[]
x

private int

Constructor Summary

AccessConstructor and Description
public
TigerDigest()

Standard constructor

public
TigerDigest(TigerDigest t)

Copy constructor.

Method Summary

Modifier and TypeMethod and Description
public Memoable
copy()

Implements org.bouncycastle.util.Memoable.copy.

Produce a copy of this object with its configuration and in its current state.
public int
doFinal(byte[]
the array the digest is to be copied into.
out
,
int
the offset into the out array the digest is to start at.
outOff
)

Implements org.bouncycastle.crypto.internal.Digest.doFinal.

close the digest, producing the final digest value.
private void
public String
public int
getByteLength()

Implements org.bouncycastle.crypto.internal.ExtendedDigest.getByteLength.

Return the size in bytes of the internal buffer the digest applies it's compression function to.
public int
getDigestSize()

Implements org.bouncycastle.crypto.internal.Digest.getDigestSize.

return the size, in bytes, of the digest produced by this message digest.
private void
private void
private void
processLength(long bitLength)

private void
processWord(byte[] b, int off)

public void
reset()

Implements org.bouncycastle.crypto.internal.Digest.reset.

reset the chaining variables
public void
reset(Memoable
an object originally copied from an object of the same type as this instance.
other
)

Implements org.bouncycastle.util.Memoable.reset.

Restore a copied object state into this object.
private void
roundABC(long x, long mul)

private void
roundBCA(long x, long mul)

private void
roundCAB(long x, long mul)

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

public void
update(byte
the input byte to be entered.
in
)

Implements org.bouncycastle.crypto.internal.Digest.update.

update the message digest with a single byte.
public void
update(byte[]
the byte array containing the data.
in
,
int
the offset into the byte array where the data starts.
inOff
,
int
the length of the data.
len
)

Implements org.bouncycastle.crypto.internal.Digest.update.

update the message digest with a block of bytes.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

aback to summary
private long a
bback to summary
private long b
bOffback to summary
private int bOff
bufback to summary
private byte[] buf
BYTE_LENGTHback to summary
private static final int BYTE_LENGTH
byteCountback to summary
private long byteCount
cback to summary
private long c
DIGEST_LENGTHback to summary
private static final int DIGEST_LENGTH
t1back to summary
private static final long[] t1
t2back to summary
private static final long[] t2
t3back to summary
private static final long[] t3
t4back to summary
private static final long[] t4
xback to summary
private long[] x
xOffback to summary
private int xOff

Constructor Detail

TigerDigestback to summary
public TigerDigest()

Standard constructor

TigerDigestback to summary
public TigerDigest(TigerDigest t)

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

Method Detail

copyback to summary
public Memoable copy()

Implements org.bouncycastle.util.Memoable.copy.

Doc from org.bouncycastle.util.Memoable.copy.

Produce a copy of this object with its configuration and in its current state.

The returned object may be used simply to store the state, or may be used as a similar object starting from the copied state.

doFinalback to summary
public int doFinal(byte[] out, int outOff)

Implements org.bouncycastle.crypto.internal.Digest.doFinal.

Doc from org.bouncycastle.crypto.internal.Digest.doFinal.

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

Parameters
out:byte[]

the array the digest is to be copied into.

outOff:int

the offset into the out array the digest is to start at.

finishback to summary
private void finish()
getAlgorithmNameback to summary
public String getAlgorithmName()

Implements org.bouncycastle.crypto.internal.Digest.getAlgorithmName.

Doc from org.bouncycastle.crypto.internal.Digest.getAlgorithmName.

return the algorithm name

Returns:String

the algorithm name

getByteLengthback to summary
public int getByteLength()

Implements org.bouncycastle.crypto.internal.ExtendedDigest.getByteLength.

Doc from org.bouncycastle.crypto.internal.ExtendedDigest.getByteLength.

Return the size in bytes of the internal buffer the digest applies it's compression function to.

Returns:int

byte length of the digests internal buffer.

getDigestSizeback to summary
public int getDigestSize()

Implements org.bouncycastle.crypto.internal.Digest.getDigestSize.

Doc from org.bouncycastle.crypto.internal.Digest.getDigestSize.

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

Returns:int

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

keyScheduleback to summary
private void keySchedule()
processBlockback to summary
private void processBlock()
processLengthback to summary
private void processLength(long bitLength)
processWordback to summary
private void processWord(byte[] b, int off)
resetback to summary
public void reset()

Implements org.bouncycastle.crypto.internal.Digest.reset.

reset the chaining variables

resetback to summary
public void reset(Memoable other)

Implements org.bouncycastle.util.Memoable.reset.

Doc from org.bouncycastle.util.Memoable.reset.

Restore a copied object state into this object.

Implementations of this method should try to avoid or minimise memory allocation to perform the reset.

Parameters
other:Memoable

an object originally copied from an object of the same type as this instance.

roundABCback to summary
private void roundABC(long x, long mul)
roundBCAback to summary
private void roundBCA(long x, long mul)
roundCABback to summary
private void roundCAB(long x, long mul)
unpackWordback to summary
public void unpackWord(long r, byte[] out, int outOff)
updateback to summary
public void update(byte in)

Implements org.bouncycastle.crypto.internal.Digest.update.

Doc from org.bouncycastle.crypto.internal.Digest.update.

update the message digest with a single byte.

Parameters
in:byte

the input byte to be entered.

updateback to summary
public void update(byte[] in, int inOff, int len)

Implements org.bouncycastle.crypto.internal.Digest.update.

Doc from org.bouncycastle.crypto.internal.Digest.update.

update the message digest with a block of bytes.

Parameters
in:byte[]

the byte array containing the data.

inOff:int

the offset into the byte array where the data starts.

len:int

the length of the data.