|
|||||||||
Home >> All >> cryptix >> jce >> provider >> [ md overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
cryptix.jce.provider.md
Class RIPEMD160

java.lang.Objectjava.security.MessageDigestSpi
cryptix.jce.provider.md.PaddingMD
cryptix.jce.provider.md.RIPEMD160
- All Implemented Interfaces:
- java.lang.Cloneable
- public final class RIPEMD160
- extends PaddingMD
- implements java.lang.Cloneable
- extends PaddingMD
Implements the RIPEMD160 message digest algorithm in Java as per the references below:
- Hans Dobbertin, Antoon Bosselaers and Bart Preneel, "RIPEMD160: 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).
- The hash function RIPEMD-160.
- Since:
- Cryptix 2.2.2
- Version:
- $Revision: 1.7 $
Field Summary | |
private int[] |
context
160-bit h0, h1, h2, h3, h4 (interim result) |
private static int |
HASH_SIZE
Size of this hash (in bytes) |
(package private) static int |
MODE_MD
|
(package private) static int |
MODE_SHA
|
(package private) static int |
MODE_TIGER
|
private static int[] |
R
Constants for the transform method. |
private static int[] |
Rp
Constants for the transform method. |
private static int[] |
S
Constants for the transform method. |
private static int[] |
Sp
Constants for the transform method. |
private int[] |
X
512 bits work buffer = 16 x 32-bit words |
Constructor Summary | |
|
RIPEMD160()
|
private |
RIPEMD160(RIPEMD160 src)
|
Method Summary | |
java.lang.Object |
clone()
Returns a clone of this class. |
protected void |
coreDigest(byte[] buf,
int off)
Return the hash bytes in buf , starting at offset
off . |
protected void |
coreReset()
Reset the hash internal structures to initial state. |
protected void |
coreUpdate(byte[] block,
int offset)
RIPEMD160 basic transformation. |
protected byte[] |
engineDigest()
Computes the final digest of the stored bytes and returns them. |
protected int |
engineDigest(byte[] buf,
int offset,
int len)
Computes the final digest of the stored bytes and returns them. |
protected int |
engineGetDigestLength()
Returns the length of the digest. |
protected void |
engineReset()
Resets the digest engine. |
protected void |
engineUpdate(byte input)
Updates the digest with the specified byte. |
protected void |
engineUpdate(byte[] input,
int offset,
int length)
Updates the digest with the specified bytes starting with the offset and proceeding for the specified length. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
R
private static final int[] R
- Constants for the transform method. They're defined as static because
they're common to all RIPEMD160 instantiated objects; and final since
they're non-modifiable.
Rp
private static final int[] Rp
- Constants for the transform method. They're defined as static because
they're common to all RIPEMD160 instantiated objects; and final since
they're non-modifiable.
S
private static final int[] S
- Constants for the transform method. They're defined as static because
they're common to all RIPEMD160 instantiated objects; and final since
they're non-modifiable.
Sp
private static final int[] Sp
- Constants for the transform method. They're defined as static because
they're common to all RIPEMD160 instantiated objects; and final since
they're non-modifiable.
HASH_SIZE
private static final int HASH_SIZE
- Size of this hash (in bytes)
- See Also:
- Constant Field Values
context
private int[] context
- 160-bit h0, h1, h2, h3, h4 (interim result)
X
private int[] X
- 512 bits work buffer = 16 x 32-bit words
MODE_MD
static final int MODE_MD
- See Also:
- Constant Field Values
MODE_SHA
static final int MODE_SHA
- See Also:
- Constant Field Values
MODE_TIGER
static final int MODE_TIGER
- See Also:
- Constant Field Values
Constructor Detail |
RIPEMD160
public RIPEMD160()
RIPEMD160
private RIPEMD160(RIPEMD160 src)
Method Detail |
clone
public java.lang.Object clone()
- Description copied from class:
java.security.MessageDigestSpi
- Returns a clone of this class.
If cloning is not supported, then by default the class throws a
CloneNotSupportedException. The MessageDigestSpi provider
implementation has to overload this class in order to be
cloneable.
coreDigest
protected void coreDigest(byte[] buf, int off)
- Description copied from class:
PaddingMD
- Return the hash bytes in
buf
, starting at offsetoff
. The subclass is expected to write exactlyhashSize
bytes in the given buffer. The buffer is guaranteed to be large enough.- Specified by:
coreDigest
in classPaddingMD
coreReset
protected void coreReset()
- Description copied from class:
PaddingMD
- Reset the hash internal structures to initial state.
coreUpdate
protected void coreUpdate(byte[] block, int offset)
- RIPEMD160 basic transformation.
Transforms context based on 512 bits from input block starting from the offset'th byte.
- Specified by:
coreUpdate
in classPaddingMD
engineGetDigestLength
protected int engineGetDigestLength()
- Description copied from class:
java.security.MessageDigestSpi
- Returns the length of the digest. It may be overridden by the
provider to return the length of the digest. Default is to
return 0. It is concrete for backwards compatibility with JDK1.1
message digest classes.
engineUpdate
protected void engineUpdate(byte input)
- Description copied from class:
java.security.MessageDigestSpi
- Updates the digest with the specified byte.
engineUpdate
protected void engineUpdate(byte[] input, int offset, int length)
- Description copied from class:
java.security.MessageDigestSpi
- Updates the digest with the specified bytes starting with the
offset and proceeding for the specified length.
engineDigest
protected byte[] engineDigest()
- Description copied from class:
java.security.MessageDigestSpi
- Computes the final digest of the stored bytes and returns
them. It performs any necessary padding. The message digest
should reset sensitive data after performing the digest.
engineDigest
protected int engineDigest(byte[] buf, int offset, int len) throws java.security.DigestException
- Description copied from class:
java.security.MessageDigestSpi
- Computes the final digest of the stored bytes and returns
them. It performs any necessary padding. The message digest
should reset sensitive data after performing the digest. This
method is left concrete for backwards compatibility with JDK1.1
message digest classes.
engineReset
protected void engineReset()
- Description copied from class:
java.security.MessageDigestSpi
- Resets the digest engine. Reinitializes internal variables
and clears sensitive data.
|
|||||||||
Home >> All >> cryptix >> jce >> provider >> [ md overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |