|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.security.MessageDigestSpi
java.security.MessageDigest
cryptix.provider.md.BlockMessageDigest
cryptix.provider.md.MD5
This class implements the MD5 message digest algorithm.
BUG: The update method is missing.
References:
Copyright © 1995-1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.8 $
Nested Class Summary |
Nested classes inherited from class java.security.MessageDigest |
|
Constructor Summary | |
MD5()
The public constructor. |
Method Summary | |
protected long |
bitcount()
|
java.lang.Object |
clone()
Returns a copy of this MD object. |
protected byte[] |
engineDigest()
SPI: Calculates the final digest. |
protected byte[] |
engineDigest(byte[] in,
int length)
Returns the digest of the data added and resets the digest. |
protected int |
engineGetDataLength()
Returns the length of the data (in bytes) hashed in every transform. |
protected int |
engineGetDigestLength()
Returns the length of the hash (in bytes). |
protected void |
engineReset()
Initializes (resets) the message digest. |
protected void |
engineTransform(byte[] in)
Adds data to the message digest. |
protected void |
engineUpdate(byte b)
SPI: Updates the message digest with a byte of new data. |
protected void |
engineUpdate(byte[] data,
int offset,
int length)
SPI: Updates the message digest with new data. |
protected static int |
F(int x,
int y,
int z)
|
protected static int |
FF(int a,
int b,
int c,
int d,
int k,
int s,
int t)
|
protected static int |
G(int x,
int y,
int z)
|
protected static int |
GG(int a,
int b,
int c,
int d,
int k,
int s,
int t)
|
protected static int |
H(int x,
int y,
int z)
|
protected static int |
HH(int a,
int b,
int c,
int d,
int k,
int s,
int t)
|
protected static int |
I(int x,
int y,
int z)
|
protected static int |
II(int a,
int b,
int c,
int d,
int k,
int s,
int t)
|
static void |
main(java.lang.String[] argv)
Entry point for self_test . |
static void |
self_test()
Do some basic tests. |
protected void |
transform(int[] M)
|
Methods inherited from class java.security.MessageDigest |
digest, digest, digest, getAlgorithm, getDigestLength, getInstance, getInstance, getInstance, getProvider, isEqual, reset, toString, update, update, update |
Methods inherited from class java.security.MessageDigestSpi |
engineDigest |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MD5()
Method Detail |
protected int engineGetDigestLength()
protected int engineGetDataLength()
engineGetDataLength
in class BlockMessageDigest
public java.lang.Object clone()
protected void engineReset()
engineReset
in class BlockMessageDigest
protected void engineTransform(byte[] in)
engineTransform
in class BlockMessageDigest
protected byte[] engineDigest(byte[] in, int length)
engineDigest
in class BlockMessageDigest
in
- the last incomplete block.length
- the length in bytes of the last block.
protected static int F(int x, int y, int z)
protected static int G(int x, int y, int z)
protected static int H(int x, int y, int z)
protected static int I(int x, int y, int z)
protected static int FF(int a, int b, int c, int d, int k, int s, int t)
protected static int GG(int a, int b, int c, int d, int k, int s, int t)
protected static int HH(int a, int b, int c, int d, int k, int s, int t)
protected static int II(int a, int b, int c, int d, int k, int s, int t)
protected void transform(int[] M)
public static final void main(java.lang.String[] argv)
self_test
.
public static final void self_test() throws java.lang.Exception
java.lang.Exception
cryptix.examples.UnitMD5
protected long bitcount()
protected void engineUpdate(byte b)
b
- the byte to be added.protected void engineUpdate(byte[] data, int offset, int length)
data
- the data to be added.offset
- the start of the data in the array.length
- the number of bytes of data to add.protected byte[] engineDigest()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |