Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- sha1 :: ByteString -> ByteString
- sha256 :: ByteString -> ByteString
- sha256d :: ByteString -> ByteString
- storageIndexLength :: ByteLength
- toBytes :: ByteArrayAccess a => a -> ByteString
- taggedHash :: Int -> ByteString -> ByteString -> ByteString
- taggedHash' :: HashAlgorithm hash => ByteString -> ByteString -> Digest' hash
- taggedPairHash :: Int -> ByteString -> ByteString -> ByteString -> ByteString
- taggedPairHash' :: HashAlgorithm hash => ByteString -> ByteString -> ByteString -> Digest' hash
- blockHash :: ByteString -> ByteString
- blockHash' :: HashAlgorithm hash => ByteString -> Digest' hash
- storageIndexHash :: Key AES128 -> StorageIndex
- ciphertextTag :: ByteString
- ciphertextSegmentHash :: ByteString -> ByteString
- ciphertextSegmentHash' :: HashAlgorithm hash => ByteString -> Digest' hash
- uriExtensionHash :: URIExtension -> ByteString
- convergenceEncryptionTag :: ByteString -> Parameters -> ByteString
- convergenceEncryptionHashLazy :: ByteString -> Parameters -> ByteString -> ByteString
- convergenceSecretLength :: ByteLength
Documentation
sha1 :: ByteString -> ByteString Source #
sha256 :: ByteString -> ByteString Source #
sha256d :: ByteString -> ByteString Source #
storageIndexLength :: ByteLength Source #
toBytes :: ByteArrayAccess a => a -> ByteString Source #
Extract the bytes from a value like a Digest
hash`.
taggedHash :: Int -> ByteString -> ByteString -> ByteString Source #
taggedHash' :: HashAlgorithm hash => ByteString -> ByteString -> Digest' hash Source #
Compute the "tagged hash" of a byte string: the hash of the concatenation of the netstring encoding of a tag and the given bytes.
taggedPairHash :: Int -> ByteString -> ByteString -> ByteString -> ByteString Source #
taggedPairHash' :: HashAlgorithm hash => ByteString -> ByteString -> ByteString -> Digest' hash Source #
Compute the "tagged pair hash" of two byte strings: the hash of the concatenation of the netstring encoding of a tag and each of two other byte strings.
blockHash :: ByteString -> ByteString Source #
blockHash' :: HashAlgorithm hash => ByteString -> Digest' hash Source #
Compute the hash of a share block. This is the same function as allmydata.util.hashutil.block_hash.
storageIndexHash :: Key AES128 -> StorageIndex Source #
ciphertextSegmentHash' :: HashAlgorithm hash => ByteString -> Digest' hash Source #
Compute the hash of a segment of ciphertext.
convergenceSecretLength :: ByteLength Source #