crypto-pubkey-0.2.4: Public Key cryptography

PortabilityGood
Stabilityexperimental
MaintainerVincent Hanquez <vincent@snarc.org>
Safe HaskellNone

Crypto.PubKey.HashDescr

Contents

Description

Standard digests wrapped in ASN1 structure

Synopsis

Types

type HashFunction = ByteString -> ByteStringSource

A standard hash function returning a digest object

data HashDescr Source

Describe a hash function and a way to wrap the digest into an DER encoded ASN1 marshalled structure.

Constructors

HashDescr 

Fields

hashFunction :: HashFunction

hash function

digestToASN1 :: ByteString -> ByteString

convertion to an ASN1 wrapped digest bytestring

List of known hash description

hashDescrMD2 :: HashDescrSource

Describe the MD2 hashing algorithm

hashDescrMD5 :: HashDescrSource

Describe the MD5 hashing algorithm

hashDescrSHA1 :: HashDescrSource

Describe the SHA1 hashing algorithm

hashDescrSHA224 :: HashDescrSource

Describe the SHA224 hashing algorithm

hashDescrSHA256 :: HashDescrSource

Describe the SHA256 hashing algorithm

hashDescrSHA384 :: HashDescrSource

Describe the SHA384 hashing algorithm

hashDescrSHA512 :: HashDescrSource

Describe the SHA512 hashing algorithm

hashDescrRIPEMD160 :: HashDescrSource

Describe the RIPEMD160 hashing algorithm