com.planetj.math.rabinhash
Class RHF32

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

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

Provides a MessageDigest based on RabinHashFunction32.

Since:
2.0
Version:
2.0
Author:
Sean Owen

Constructor Summary
RHF32()
           
 
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

RHF32

public RHF32()
Method Detail

engineGetDigestLength

protected int engineGetDigestLength()
Returns:
4

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:
4
Throws:
java.security.DigestException - if len is less than 4

engineReset

protected void engineReset()