All Packages Class Hierarchy This Package Previous Next Index
Class IS.hi.logir.cryptonite.MD5State
java.lang.Object
|
+----IS.hi.logir.cryptonite.FingerprintState
|
+----IS.hi.logir.cryptonite.MD5State
- public class MD5State
- extends FingerprintState
- implements Serializable
An object of this class holds the state of an MD5 fingerprint still
being calculated.
MD5 fingerprints are often used in conjunction with the RSA public key
encryption algorithm to implement digital signatures.
- Author:
- Logi Ragnarsson (logir@hi.is)
- See Also:
- Fingerprint, Signature, RsaKey
-
padding
-
-
state
-
-
valid
-
-
MD5State()
- Create a new clear MD5State.
-
calcFingerprint(byte[])
-
-
calculate()
- Return a fingerprint for the curret state, without
destroying the state.
-
createState()
- Return a new clear MD5State.
-
FF(int, int, int, int, int, int, int)
-
-
GG(int, int, int, int, int, int, int)
-
-
HH(int, int, int, int, int, int, int)
-
-
II(int, int, int, int, int, int, int)
-
-
reset()
- Reset the object.
-
rotateLeft(int, int)
-
-
toByteArray(int[], int)
-
-
toIntArray(byte[], int, int)
-
-
transform(MD5State. MD5SubState, byte[], int)
-
-
uadd(int, int)
-
-
uadd(int, int, int)
-
-
uadd(int, int, int, int)
-
-
update(byte[], int, int)
- Update the fingerprint state with the bytes from
buf[offset, offset+length-1].
-
update(MD5State. MD5SubState, byte[], int, int)
-
state
private MD5State. MD5SubState state
valid
private Fingerprint valid
padding
static byte padding[]
MD5State
public MD5State()
- Create a new clear MD5State.
createState
public static FingerprintState createState()
- Return a new clear MD5State.
reset
public void reset()
- Reset the object.
- Overrides:
- reset in class FingerprintState
rotateLeft
private static int rotateLeft(int x,
int n)
uadd
private static int uadd(int a,
int b)
uadd
private static int uadd(int a,
int b,
int c)
uadd
private static int uadd(int a,
int b,
int c,
int d)
FF
private static int FF(int a,
int b,
int c,
int d,
int x,
int s,
int ac)
GG
private static int GG(int a,
int b,
int c,
int d,
int x,
int s,
int ac)
HH
private static int HH(int a,
int b,
int c,
int d,
int x,
int s,
int ac)
II
private static int II(int a,
int b,
int c,
int d,
int x,
int s,
int ac)
toIntArray
private static int[] toIntArray(byte buffer[],
int offset,
int len)
toByteArray
private static byte[] toByteArray(int buffer[],
int len)
transform
private static void transform(MD5State. MD5SubState state,
byte buffer[],
int offset)
update
private void update(MD5State. MD5SubState stat,
byte buffer[],
int offset,
int length)
update
public void update(byte buffer[],
int offset,
int length)
- Update the fingerprint state with the bytes from
buf[offset, offset+length-1].
- Overrides:
- update in class FingerprintState
calculate
public Fingerprint calculate()
- Return a fingerprint for the curret state, without
destroying the state.
- Overrides:
- calculate in class FingerprintState
calcFingerprint
public static Fingerprint calcFingerprint(byte buf[])
All Packages Class Hierarchy This Package Previous Next Index