public final class MD5Digest extends ByteArrayWrapper
ByteArrayWrapper.Comparator
Modifier and Type | Field and Description |
---|---|
static int |
MD5_BYTES
Number of bytes in an MD5 sum.
|
array
Constructor and Description |
---|
MD5Digest(byte[] digest)
Constructor.
|
MD5Digest(java.security.MessageDigest digest)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
insertIntoDigest(java.security.MessageDigest digest)
Inserts the digest data into the given MD.
|
int |
partialHashCode()
Calculates and returns a hashcode that only depends on the first 3 bytes.
|
public static final int MD5_BYTES
public MD5Digest(java.security.MessageDigest digest)
MessageDigest.digest()
, so the digest
will be reset afterwards.public MD5Digest(byte[] digest)
public void insertIntoDigest(java.security.MessageDigest digest)
This method is provided instead of a getter, to keep this immutable.
public int partialHashCode()