dhall-1.41.2: A configuration language guaranteed to terminate
Safe HaskellNone
LanguageHaskell2010

Dhall.Crypto

Description

This module provides implementations of cryptographic utilities that only work for GHC (as opposed to GHCJS)

Synopsis

Documentation

newtype SHA256Digest Source #

A SHA256 digest

Constructors

SHA256Digest 

Instances

Instances details
Eq SHA256Digest Source # 
Instance details

Defined in Dhall.Crypto

Ord SHA256Digest Source # 
Instance details

Defined in Dhall.Crypto

Show SHA256Digest Source # 
Instance details

Defined in Dhall.Crypto

Generic SHA256Digest Source # 
Instance details

Defined in Dhall.Crypto

Associated Types

type Rep SHA256Digest :: Type -> Type #

NFData SHA256Digest Source # 
Instance details

Defined in Dhall.Crypto

Methods

rnf :: SHA256Digest -> () #

type Rep SHA256Digest Source # 
Instance details

Defined in Dhall.Crypto

type Rep SHA256Digest = D1 ('MetaData "SHA256Digest" "Dhall.Crypto" "dhall-1.41.2-CygVEUAXWhKKGHhZSAzzm9" 'True) (C1 ('MetaCons "SHA256Digest" 'PrefixI 'True) (S1 ('MetaSel ('Just "unSHA256Digest") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))

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