public final class Tiger
extends java.security.MessageDigest
implements java.lang.Cloneable
| Constructor and Description |
|---|
Tiger()
Creates a Tiger object with default initial state.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clones this object.
|
byte[] |
engineDigest()
Completes the hash computation by performing final operations
such as padding.
|
int |
engineDigest(byte[] hashvalue,
int offset,
int len)
Completes the hash computation by performing final operations
such as padding.
|
int |
engineGetDigestLength()
Returns the digest length in bytes.
|
void |
engineReset()
Reset then initialize the digest context.
|
void |
engineUpdate(byte input)
Updates the digest using the specified byte.
|
void |
engineUpdate(byte[] input,
int offset,
int len)
Updates the digest using the specified array of bytes,
starting at the specified offset.
|
protected void |
init()
Initialize the digest context.
|
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.security.MessageDigestjava.lang.CloneNotSupportedExceptionpublic int engineGetDigestLength()
engineGetDigestLength in class java.security.MessageDigestSpipublic void engineReset()
java.security.MessageDigestSpi.engineReset in class java.security.MessageDigestSpiprotected void init()
public void engineUpdate(byte input)
engineUpdate in class java.security.MessageDigestSpiinput - the byte to use for the update.public void engineUpdate(byte[] input,
int offset,
int len)
engineUpdate in class java.security.MessageDigestSpiinput - the array of bytes to use for the update.offset - the offset to start from in the array of bytes.len - the number of bytes to use, starting at offset.public byte[] engineDigest()
engineDigest in class java.security.MessageDigestSpipublic int engineDigest(byte[] hashvalue,
int offset,
int len)
throws java.security.DigestException
engineDigest in class java.security.MessageDigestSpihashvalue - the output buffer in which to store the digest.offset - offset to start from in the output bufferlen - number of bytes within buf allotted for the digest.
Both this default implementation and the SUN provider
do not return partial digests. The presence of this
parameter is solely for consistency in our API's.
If the value of this parameter is less than the
actual digest length, the method will throw a
DigestException. This parameter is ignored if its
value is greater than or equal to the actual digest
length.java.security.DigestException