License | BSD-style |
---|---|
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell2010 |
Poly1305 implementation
- type Ctx = State
- data State
- newtype Auth = Auth Bytes
- initialize :: ByteArrayAccess key => key -> CryptoFailable State
- update :: ByteArrayAccess ba => State -> ba -> State
- updates :: ByteArrayAccess ba => State -> [ba] -> State
- finalize :: State -> Auth
- auth :: (ByteArrayAccess key, ByteArrayAccess ba) => key -> ba -> Auth
Documentation
Incremental MAC Functions
initialize :: ByteArrayAccess key => key -> CryptoFailable State Source
initialize a Poly1305 context
update :: ByteArrayAccess ba => State -> ba -> State Source
update a context with a bytestring
updates :: ByteArrayAccess ba => State -> [ba] -> State Source
updates a context with multiples bytestring
One-pass MAC function
auth :: (ByteArrayAccess key, ByteArrayAccess ba) => key -> ba -> Auth Source
One-pass authorization creation