FileDocCategorySizeDatePackage
MD4Hasher.javaAPI DocAzureus 3.0.3.41744Thu Feb 09 19:42:44 GMT 2006org.gudy.azureus2.core3.util

MD4Hasher

public 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 voidreset()

    	md4.reset();
    
public voidupdate(byte[] data, int pos, int len)

    	md4.update( data, pos, len );
    
public voidupdate(byte[] data)

    	update( data, 0, data.length );