Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Constructor Summary
`SHA1HashProvider()`

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

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SHA1HashProvider

    public SHA1HashProvider()
                     throws java.security.NoSuchAlgorithmException

Throws:
  `java.security.NoSuchAlgorithmException`

Method Detail

### 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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2005 - Rice Pastry.