Rice Pastry API

org.mpisws.p2p.transport.peerreview.history
Interface HashProvider

All Known Subinterfaces:
IdentityTransport<Handle,Identifier>, PeerReview<Handle,Identifier>
All Known Implementing Classes:
IdentityTransportLayerImpl, NullHashProvider, PeerReviewImpl, SHA1HashProvider

public interface HashProvider


Method Summary
 byte[] getEmptyHash()
           
 short getHashSizeBytes()
           
 byte[] hash(java.nio.ByteBuffer... hashMe)
           
 byte[] hash(long seq, short type, byte[] nodeHash, byte[] contentHash)
           
 

Method Detail

hash

byte[] hash(long seq,
            short type,
            byte[] nodeHash,
            byte[] contentHash)

hash

byte[] hash(java.nio.ByteBuffer... hashMe)

getHashSizeBytes

short getHashSizeBytes()

getEmptyHash

byte[] getEmptyHash()

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection