|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.anidb.checksum.Checksum
net.anidb.checksum.Md4Checksum
public class Md4Checksum
A class that can be used to compute the MD4 checksum of a data stream.
| Constructor Summary | |
|---|---|
Md4Checksum()
Creates a MD4 checksum object. |
|
| Method Summary | |
|---|---|
byte[] |
getDigest()
Builds and returns the digest. |
void |
reset()
Resets the checksum object. |
void |
update(byte[] buf,
int off,
int len)
Updates the checksum with data. |
void |
update(int data)
Updates the checksum with data. |
| Methods inherited from class net.anidb.checksum.Checksum |
|---|
getHexDigest |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Md4Checksum()
| Method Detail |
|---|
public void reset()
Checksum
reset in class Checksum
public void update(byte[] buf,
int off,
int len)
Checksum
update in class Checksumbuf - The data buffer.off - The offset.len - The length.public void update(int data)
Checksum
update in class Checksumdata - The data.public byte[] getDigest()
ChecksumBuilds and returns the digest.
After calling this method you have to use Checksum.reset().
getDigest in class ChecksumChecksum.reset(),
Checksum.getHexDigest()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||