| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Dhall.Crypto
Description
This module provides implementations of cryptographic utilities that only work for GHC (as opposed to GHCJS)
Synopsis
- newtype SHA256Digest = SHA256Digest {}
- sha256DigestFromByteString :: ByteString -> Maybe SHA256Digest
- sha256Hash :: ByteString -> SHA256Digest
- toString :: SHA256Digest -> String
Documentation
newtype SHA256Digest Source #
A SHA256 digest
Constructors
| SHA256Digest | |
Fields | |
Instances
sha256DigestFromByteString :: ByteString -> Maybe SHA256Digest Source #
Attempt to interpret a ByteString as a SHA256Digest, returning
Nothing if the conversion fails
sha256Hash :: ByteString -> SHA256Digest Source #
Hash a ByteString and return the hash as a SHA256Digest
toString :: SHA256Digest -> String Source #
String representation of a SHA256Digest