License | BSD-style |
---|---|
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell2010 |
Poly1305 implementation
- data Ctx
- newtype Auth = Auth Bytes
- initialize :: ByteArrayAccess key => key -> Ctx
- update :: ByteArrayAccess ba => Ctx -> ba -> Ctx
- updates :: ByteArrayAccess ba => Ctx -> [ba] -> Ctx
- finalize :: Ctx -> Auth
- auth :: (ByteArrayAccess key, ByteArrayAccess ba) => key -> ba -> Auth
Documentation
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
One-pass MAC function
auth :: (ByteArrayAccess key, ByteArrayAccess ba) => key -> ba -> Auth Source
One-pass authorization creation