amazonka-core-1.0.0: Core data types and functionality for Amazonka libraries.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityprovisional
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Data.Crypto

Contents

Description

 

Synopsis

Conversion

Algorithms

Contexts

hash :: (ByteArrayAccess ba, HashAlgorithm a) => ba -> Digest a

Hash a strict bytestring into a digest.

hashlazy :: HashAlgorithm a => ByteString -> Digest a

Hash a lazy bytestring into a digest.

hashInit :: HashAlgorithm a => Context a

Initialize a new context for this hash algorithm

hashUpdate :: (ByteArrayAccess ba, HashAlgorithm a) => Context a -> ba -> Context a

run hashUpdates on one single bytestring and return the updated context.

hashFinalize :: HashAlgorithm a => Context a -> Digest a

Finalize a context and return a digest.

Re-exported

data HMAC a :: * -> *

Represent an HMAC that is a phantom type with the hash used to produce the mac.

The Eq instance is constant time.

Instances

data Digest a :: * -> *

Represent a digest for a given hash algorithm.

Instances

class HashAlgorithm a

Class representing hashing algorithms.

The interface presented here is update in place and lowlevel. the Hash module takes care of hidding the mutable interface properly.

data SHA256 :: *

SHA256 cryptographic hash algorithm

Constructors

SHA256 

data MD5 :: *

MD5 cryptographic hash algorithm

Constructors

MD5 

data Base :: *

Different bases that can be used

Constructors

Base16

similar to hexadecimal

Base32 
Base64 

Instances