org.mpisws.p2p.transport.peerreview.history.hasher
Class SHA1HashProvider
java.lang.Object
org.mpisws.p2p.transport.peerreview.history.hasher.SHA1HashProvider
- All Implemented Interfaces:
- HashProvider
public class SHA1HashProvider
- extends java.lang.Object
- implements HashProvider
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SHA1HashProvider
public SHA1HashProvider()
throws java.security.NoSuchAlgorithmException
- Throws:
java.security.NoSuchAlgorithmException
getEmptyHash
public byte[] getEmptyHash()
- Specified by:
getEmptyHash
in interface HashProvider
getHashSizeBytes
public short getHashSizeBytes()
- Specified by:
getHashSizeBytes
in interface HashProvider
hash
public byte[] hash(long seq,
short type,
byte[] nodeHash,
byte[] contentHash)
- Specified by:
hash
in interface HashProvider
hash
public byte[] hash(java.nio.ByteBuffer... hashMe)
- Specified by:
hash
in interface HashProvider
Copyright © 2001-2005 - Rice Pastry.