cryptonite-0.3: Cryptography Primitives sink

LicenseBSD-style
MaintainerVincent Hanquez <vincent@snarc.org>
Stabilityexperimental
Portabilityunknown
Safe HaskellNone
LanguageHaskell2010

Crypto.MAC.Poly1305

Contents

Description

Poly1305 implementation

Synopsis

Documentation

data Ctx Source

Poly1305 Context

Instances

newtype Auth Source

Poly1305 Auth

Constructors

Auth Bytes 

Incremental MAC Functions

initialize :: ByteArrayAccess key => key -> Ctx Source

initialize a Poly1305 context

update :: ByteArrayAccess ba => Ctx -> ba -> Ctx Source

update a context with a bytestring

updates :: ByteArrayAccess ba => Ctx -> [ba] -> Ctx Source

updates a context with multiples bytestring

finalize :: Ctx -> Auth Source

finalize the context into a digest bytestring

One-pass MAC function

auth :: (ByteArrayAccess key, ByteArrayAccess ba) => key -> ba -> Auth Source

One-pass authorization creation