de.flexiprovider.core.md
Class MD5
java.lang.Object
|
+--java.security.MessageDigestSpi
|
+--de.flexiprovider.api.MessageDigest
|
+--de.flexiprovider.core.md.MDFamilyDigest
|
+--de.flexiprovider.core.md.MD5
- public final class MD5
- extends MDFamilyDigest
This class implements the MD5 message digest algorithm according to the
Handbook of Applied Cryptography, Menezes, van Oorschot, Vanstone, CRC Press,
1997, algorithm 9.51
The algorithm has been invented by Rivest and further information concerning
the MD5 message digest family can be found at www.rsa.com and in RFC 1321.
The efficiency of this implementation has been tested on a AMD K6-III, 450
MHz, running Windows 98 SE, using jdk 1.2.2. The hashing rate is about 125
MBits / second.
- Author:
- Oliver Seiler
|
Field Summary |
static java.lang.String |
ALG_NAME
The algorithm name. |
static java.lang.String |
OID
The OID of MD5 (defined by PKCS #2). |
|
Constructor Summary |
MD5()
Constructor. |
|
Method Summary |
byte[] |
digest()
compute the digest and reset the engine |
protected void |
processBlock()
process a block of 64 bytes |
void |
reset()
reset the engine to its initial state |
| Methods inherited from class java.security.MessageDigestSpi |
clone, engineDigest |
| Methods inherited from class java.lang.Object |
, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALG_NAME
public static final java.lang.String ALG_NAME
- The algorithm name.
OID
public static final java.lang.String OID
- The OID of MD5 (defined by PKCS #2).
MD5
public MD5()
- Constructor.
reset
public void reset()
- reset the engine to its initial state
- Overrides:
reset in class MessageDigest
digest
public byte[] digest()
- compute the digest and reset the engine
- Overrides:
digest in class MessageDigest
- Returns:
- the message digest in a byte array
processBlock
protected void processBlock()
- process a block of 64 bytes
- Overrides:
processBlock in class MDFamilyDigest