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

Variable Index

 o padding
 o state
 o valid

Constructor Index

 o MD5State()
Create a new clear MD5State.

Method Index

 o calcFingerprint(byte[])
 o calculate()
Return a fingerprint for the curret state, without destroying the state.
 o createState()
Return a new clear MD5State.
 o FF(int, int, int, int, int, int, int)
 o GG(int, int, int, int, int, int, int)
 o HH(int, int, int, int, int, int, int)
 o II(int, int, int, int, int, int, int)
 o reset()
Reset the object.
 o rotateLeft(int, int)
 o toByteArray(int[], int)
 o toIntArray(byte[], int, int)
 o transform(MD5State. MD5SubState, byte[], int)
 o uadd(int, int)
 o uadd(int, int, int)
 o uadd(int, int, int, int)
 o update(byte[], int, int)
Update the fingerprint state with the bytes from buf[offset, offset+length-1].
 o update(MD5State. MD5SubState, byte[], int, int)

Variables

 o state
 private MD5State. MD5SubState state
 o valid
 private Fingerprint valid
 o padding
 static byte padding[]

Constructors

 o MD5State
 public MD5State()
Create a new clear MD5State.

Methods

 o createState
 public static FingerprintState createState()
Return a new clear MD5State.

 o reset
 public void reset()
Reset the object.

Overrides:
reset in class FingerprintState
 o rotateLeft
 private static int rotateLeft(int x,
                               int n)
 o uadd
 private static int uadd(int a,
                         int b)
 o uadd
 private static int uadd(int a,
                         int b,
                         int c)
 o uadd
 private static int uadd(int a,
                         int b,
                         int c,
                         int d)
 o FF
 private static int FF(int a,
                       int b,
                       int c,
                       int d,
                       int x,
                       int s,
                       int ac)
 o GG
 private static int GG(int a,
                       int b,
                       int c,
                       int d,
                       int x,
                       int s,
                       int ac)
 o HH
 private static int HH(int a,
                       int b,
                       int c,
                       int d,
                       int x,
                       int s,
                       int ac)
 o II
 private static int II(int a,
                       int b,
                       int c,
                       int d,
                       int x,
                       int s,
                       int ac)
 o toIntArray
 private static int[] toIntArray(byte buffer[],
                                 int offset,
                                 int len)
 o toByteArray
 private static byte[] toByteArray(int buffer[],
                                   int len)
 o transform
 private static void transform(MD5State. MD5SubState state,
                               byte buffer[],
                               int offset)
 o update
 private void update(MD5State. MD5SubState stat,
                     byte buffer[],
                     int offset,
                     int length)
 o 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
 o calculate
 public Fingerprint calculate()
Return a fingerprint for the curret state, without destroying the state.

Overrides:
calculate in class FingerprintState
 o calcFingerprint
 public static Fingerprint calcFingerprint(byte buf[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index