Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type HashSha256 a = SizedByteArray CRYPTO_HASH_SHA256_BYTES a
- sha256 :: (ByteArrayAccess pt, ByteArray hashBytes) => pt -> HashSha256 hashBytes
- type HashSha512 a = SizedByteArray CRYPTO_HASH_SHA512_BYTES a
- sha512 :: (ByteArrayAccess pt, ByteArray hashBytes) => pt -> HashSha512 hashBytes
Documentation
type HashSha256 a = SizedByteArray CRYPTO_HASH_SHA256_BYTES a Source #
Hash returned by sha256
.
This type is parametrised by the actual data type that contains
bytes. This can be, for example, a ByteString
.
:: (ByteArrayAccess pt, ByteArray hashBytes) | |
=> pt | Message to hash |
-> HashSha256 hashBytes |
type HashSha512 a = SizedByteArray CRYPTO_HASH_SHA512_BYTES a Source #
Hash returned by sha512
.
This type is parametrised by the actual data type that contains
bytes. This can be, for example, a ByteString
.
:: (ByteArrayAccess pt, ByteArray hashBytes) | |
=> pt | Message to hash |
-> HashSha512 hashBytes |