MD4Hasherpublic class MD4Hasher extends Object
Fields Summary |
---|
protected MessageDigest | md4 |
Constructors Summary |
---|
public MD4Hasher()Uses bouncy castle provider
try{
md4 = MessageDigest.getInstance("MD4", "BC");
}catch( Throwable e ){
// should never get here
Debug.printStackTrace( e );
}
|
Methods Summary |
---|
public byte[] | getDigest()
return( md4.digest());
| public void | reset()
md4.reset();
| public void | update(byte[] data, int pos, int len)
md4.update( data, pos, len );
| public void | update(byte[] data)
update( data, 0, data.length );
|
|