public class RawHash
extends java.lang.Object
implements java.lang.Cloneable
| Constructor and Description |
|---|
RawHash(AbstractMessageDigest delegate)
Create a new raw hash function that provides the compression function
of the given complete hash function.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Create a clone of this object which has the same internal states.
|
byte[] |
compress(byte[] input)
Apply the compression function to given input block.
|
int |
getBlockSize()
Get the input blocksize of this hash function in bytes.
|
int |
getDigetLength()
Get the output length of this hash in bytes.
|
void |
reset()
Reset this hash function.
|
public RawHash(AbstractMessageDigest delegate)
delegate - The underlying complete hash function which provides
the compression function.public byte[] compress(byte[] input)
input - The input block to feed into the compression.getBlockSize(),
reset()public void reset()
public int getBlockSize()
public int getDigetLength()
public java.lang.Object clone()
clone in class java.lang.Object