com.planetj.math.rabinhash
Class RHF64

java.lang.Object
  extended byjava.security.MessageDigestSpi
      extended bycom.planetj.math.rabinhash.RHF64
All Implemented Interfaces:
java.lang.Cloneable

public final class RHF64
extends java.security.MessageDigestSpi
implements java.lang.Cloneable

Provides a MessageDigest based on RabinHashFunction64.

Since:
2.0
Version:
2.0
Author:
Sean Owen

Constructor Summary
RHF64()
           
 
Method Summary
protected  byte[] engineDigest()
           
protected  int engineDigest(byte[] buf, int offset, int len)
           
protected  int engineGetDigestLength()
           
protected  void engineReset()
           
protected  void engineUpdate(byte input)
           
protected  void engineUpdate(byte[] input, int offset, int len)
           
 
Methods inherited from class java.security.MessageDigestSpi
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RHF64

public RHF64()
Method Detail

engineGetDigestLength

protected int engineGetDigestLength()
Returns:
8

engineUpdate

protected void engineUpdate(byte input)

engineUpdate

protected void engineUpdate(byte[] input,
                            int offset,
                            int len)

engineDigest

protected byte[] engineDigest()

engineDigest

protected int engineDigest(byte[] buf,
                           int offset,
                           int len)
                    throws java.security.DigestException
Parameters:
buf - buffer into which to write the digest
offset - offset into buffer at which to start writing
len - (not used)
Returns:
8
Throws:
java.security.DigestException - if len is less than 8

engineReset

protected void engineReset()