cryptix.provider.md
public class HAVAL extends MessageDigest implements Parameterized, VariableLengthDigest, Cloneable
HAVAL is a variable length MD with a variable number of passes. The values for these two parameters are read from the provider '.properties' file. Here is an example of the two property lines that do that:
Alg.passes.HAVAL = 3 Alg.bitLength.HAVAL = 256
References:
Copyright © 1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.5 $
Since: Cryptix 2.2.2
Constructor Summary | |
---|---|
HAVAL() |
Method Summary | |
---|---|
Object | clone() Returns a copy of this MD object. |
protected byte[] | engineDigest()
Completes the hash computation by performing final operations such
as padding. |
protected int | engineGetDigestLength() SPI: Returns the digest length in bytes. |
protected Object | engineGetParameter(String param) |
protected void | engineReset()
Resets this object disregarding any temporary data present at the
time of the invocation of this call. |
protected void | engineSetParameter(String param, Object value) |
protected void | engineUpdate(byte input) Continues a HAVAL message digest using the input byte. |
protected void | engineUpdate(byte[] input, int offset, int len)
Hashes a byte array from a given offset for a specified length.
to be used in conjunction with engineReset() and finish().
|
static LinkStatus | getLinkStatus() |
Object | getParameter(String param) |
void | setBitLength(int len)
Sets the output length of this HAVAL object in bits, resetting all
internal variables. |
void | setDigestLength(int len)
Sets the output length of this HAVAL object in bytes, resetting all
internal variables. |
void | setParameter(String param, Object value) |
void | setPasses(int p)
Sets the number of passes for this HAVAL object, resetting all
internal variables. |
Returns: the array of bytes for the resulting hash value.
Parameters: input byte array from which data is to be hashed. offset start index of bytes to hash in input. len number of bytes to hash.