Safe Haskell | None |
---|---|
Language | Haskell2010 |
Internals of crypto_hash
.
Synopsis
- type HashSha256 a = SizedByteArray CRYPTO_HASH_SHA256_BYTES a
- sha256 :: (ByteArrayAccess pt, ByteArray hashBytes) => pt -> IO (HashSha256 hashBytes)
- type HashSha512 a = SizedByteArray CRYPTO_HASH_SHA512_BYTES a
- sha512 :: (ByteArrayAccess pt, ByteArray hashBytes) => pt -> IO (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 |
-> IO (HashSha256 hashBytes) |
Hash a message using SHA-256.
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 |
-> IO (HashSha512 hashBytes) |
Hash a message using SHA-512.