cryptix.provider.md

Class RIPEMD128

public class RIPEMD128 extends MessageDigest implements Cloneable

Implements the RIPEMD128 message digest algorithm in Java as per the reference below.

References:

  1. Hans Dobbertin, Antoon Bosselaers and Bart Preneel, "RIPEMD-160: A Strengthened Version of RIPEMD," 18 April 1996. A joint publication by the German Information Security Agency (POB 20 03 63, D-53133 Bonn, Germany) and the Katholieke Universiteit Leuven, ESAT-COSIC (K. Mercierlaan 94, B-3001 Heverlee, Belgium).

Copyright © 1997 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.4 $

Since: Cryptix 2.2.2

Author: Raif S. Naffah David Hopwood

Constructor Summary
RIPEMD128()
Method Summary
Objectclone()
Return a copy of this MD object.
protected byte[]engineDigest()
Complete the hash computation by performing final operations such as padding.
protected intengineGetDigestLength()
SPI: Return the digest length in bytes.
protected voidengineReset()
Resets this object disregarding any temporary data present at the time of the invocation of this call.
protected voidengineUpdate(byte input)
Continue a RIPEMD128 message digest using the input byte.
voidengineUpdate(byte[] input, int offset, int len)
RIPEMD128 block update operation.
static LinkStatusgetLinkStatus()

Constructor Detail

RIPEMD128

public RIPEMD128()

Method Detail

clone

public Object clone()
Return a copy of this MD object.

engineDigest

protected byte[] engineDigest()
Complete the hash computation by performing final operations such as padding. At the return of this engineDigest, the MD engine is reset.

Returns: the array of bytes for the resulting hash value.

engineGetDigestLength

protected int engineGetDigestLength()
SPI: Return the digest length in bytes.

engineReset

protected void engineReset()
Resets this object disregarding any temporary data present at the time of the invocation of this call.

engineUpdate

protected void engineUpdate(byte input)
Continue a RIPEMD128 message digest using the input byte.

engineUpdate

public void engineUpdate(byte[] input, int offset, int len)
RIPEMD128 block update operation.

Continues a RIPEMD128 message digest operation, by filling the buffer, transform(ing) data in 512-bit message block(s), updating the variables context and count, and leaving (buffering) the remaining bytes in buffer for the next update or finish.

Parameters: input input block offset start of meaningful bytes in input len count of bytes in input block to consider

getLinkStatus

public static LinkStatus getLinkStatus()