org.logi.crypto.sign
Class MD5State.SubState

java.lang.Object
  |
  +--org.logi.crypto.sign.MD5State.SubState
Enclosing class:
MD5State

public static class MD5State.SubState
extends java.lang.Object

MD5 function without the padding.


Field Summary
 byte[] buffer
          Holds the bytes that have been added to this object, but not calculated into the hash in state.
 long count
          Holds the number of bits added to this object.
 int[] hash
          A hash for as much of the data added to this object as possible, given that they must be added in 64 byte chunks.
 
Constructor Summary
MD5State.SubState()
          Create a new empty instance
MD5State.SubState(MD5State.SubState s)
          Create a copy of s
 
Method Summary
static int FF(int a, int b, int c, int d, int x, int s, int ac)
           
static int GG(int a, int b, int c, int d, int x, int s, int ac)
           
static int HH(int a, int b, int c, int d, int x, int s, int ac)
           
static int II(int a, int b, int c, int d, int x, int s, int ac)
           
 void reset()
          Reset the internal state
static int rotateLeft(int x, int n)
           
 void transform(byte[] data, int offset)
           
static int uadd(int a, int b)
           
static int uadd(int a, int b, int c)
           
static int uadd(int a, int b, int c, int d)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hash

public int[] hash
A hash for as much of the data added to this object as possible, given that they must be added in 64 byte chunks.

count

public long count
Holds the number of bits added to this object.

buffer

public byte[] buffer
Holds the bytes that have been added to this object, but not calculated into the hash in state.
Constructor Detail

MD5State.SubState

public MD5State.SubState()
Create a new empty instance

MD5State.SubState

public MD5State.SubState(MD5State.SubState s)
Create a copy of s
Method Detail

reset

public void reset()
Reset the internal state

rotateLeft

public static int rotateLeft(int x,
                             int n)

uadd

public static int uadd(int a,
                       int b)

uadd

public static int uadd(int a,
                       int b,
                       int c)

uadd

public static int uadd(int a,
                       int b,
                       int c,
                       int d)

FF

public static int FF(int a,
                     int b,
                     int c,
                     int d,
                     int x,
                     int s,
                     int ac)

GG

public static int GG(int a,
                     int b,
                     int c,
                     int d,
                     int x,
                     int s,
                     int ac)

HH

public static int HH(int a,
                     int b,
                     int c,
                     int d,
                     int x,
                     int s,
                     int ac)

II

public static int II(int a,
                     int b,
                     int c,
                     int d,
                     int x,
                     int s,
                     int ac)

transform

public void transform(byte[] data,
                      int offset)


Copyright (c) 1997-2001 Logi Ragnarsson - Distributed under the GPL