com.planetj.math.rabinhash
Class RHF64
java.lang.Object
java.security.MessageDigestSpi
com.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()
|
| 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 |
RHF64
public RHF64()
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 digestoffset - offset into buffer at which to start writinglen - (not used)
- Returns:
- 8
- Throws:
java.security.DigestException - if len is less than 8
engineReset
protected void engineReset()