org.logi.crypto.hash
Class MD5State.SubState
java.lang.Object
|
+--org.logi.crypto.hash.MD5State.SubState
- Enclosing class:
- MD5State
- public static class MD5State.SubState
- extends java.lang.Object
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. |
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 |
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
.
MD5State.SubState
public MD5State.SubState()
- Create a new empty instance
MD5State.SubState
public MD5State.SubState(MD5State.SubState s)
- Create a copy of s
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 1997-2000 Logi Ragnarsson