public final class MD4
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static int |
blockSize |
private byte[] |
buffer |
private int |
bufOfs |
private long |
bytesProcessed |
private static byte[] |
padding |
private static int |
S11 |
private static int |
S12 |
private static int |
S13 |
private static int |
S14 |
private static int |
S21 |
private static int |
S22 |
private static int |
S23 |
private static int |
S24 |
private static int |
S31 |
private static int |
S32 |
private static int |
S33 |
private static int |
S34 |
private int[] |
state |
private int[] |
x |
Constructor and Description |
---|
MD4()
Standard constructor, creates a new MD4 instance.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
digest(byte[] in)
Compute and return the message digest of the input byte array.
|
private void |
engineUpdate(byte[] b,
int ofs,
int len) |
private static int |
FF(int a,
int b,
int c,
int d,
int x,
int s) |
private static int |
GG(int a,
int b,
int c,
int d,
int x,
int s) |
private static int |
HH(int a,
int b,
int c,
int d,
int x,
int s) |
private void |
implCompress(byte[] buf,
int ofs)
This is where the functions come together as the generic MD4
transformation operation.
|
private void |
implDigest(byte[] out,
int ofs)
Perform the final computations, any buffered bytes are added
to the digest, the count is added to the digest, and the resulting
digest is stored.
|
private void |
implReset()
Reset the state of this object.
|
private final int[] state
private final int[] x
private static final int blockSize
private final byte[] buffer
private int bufOfs
private long bytesProcessed
private static final int S11
private static final int S12
private static final int S13
private static final int S14
private static final int S21
private static final int S22
private static final int S23
private static final int S24
private static final int S31
private static final int S32
private static final int S33
private static final int S34
private static final byte[] padding
public byte[] digest(byte[] in)
in
- the input byte arrayprivate void implReset()
private void implDigest(byte[] out, int ofs)
private void engineUpdate(byte[] b, int ofs, int len)
private static int FF(int a, int b, int c, int d, int x, int s)
private static int GG(int a, int b, int c, int d, int x, int s)
private static int HH(int a, int b, int c, int d, int x, int s)
private void implCompress(byte[] buf, int ofs)