org.gudy.azureus2.core3.util
Class ED2KHasher

java.lang.Object
  extended by org.gudy.azureus2.core3.util.ED2KHasher

public class ED2KHasher
extends Object

Author:
parg

Field Summary
protected  MD4Hasher block_hasher
           
static int BLOCK_SIZE
           
protected  int current_bytes
           
protected  MD4Hasher current_hasher
           
 
Constructor Summary
ED2KHasher()
           
 
Method Summary
 byte[] getDigest()
           
 void update(byte[] data)
           
 void update(byte[] data, int pos, int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BLOCK_SIZE

public static final int BLOCK_SIZE
See Also:
Constant Field Values

current_hasher

protected MD4Hasher current_hasher

block_hasher

protected MD4Hasher block_hasher

current_bytes

protected int current_bytes
Constructor Detail

ED2KHasher

public ED2KHasher()
Method Detail

update

public void update(byte[] data)

update

public void update(byte[] data,
                   int pos,
                   int len)

getDigest

public byte[] getDigest()