Deprecated. use Poly1305 State instead
Poly1305 State. use State instead of Ctx
:: a typeCtrl KGHC 10.0.0.20260917 · lts/ghc-10.0.x · aa25b89 · 2026-10-10
Modulecrypton-2.1.7Haskell2010
Poly1305 implementation
Deprecated. use Poly1305 State instead
Poly1305 State. use State instead of Ctx
Poly1305 State
This type is an instance of ByteArrayAccess for debugging purpose. Internal layout is architecture dependent, may contain uninitialized data fragments, and change in future versions. The bytearray should not be used as input to cryptographic algorithms.
ByteArrayAccess StateDefined in crypton-2.1.7 · Crypto.MAC.Poly1305A Poly1305 key: thirty-two bytes, and the length is checked here rather than at every use. initialize and auth take one of these and cannot fail, so a caller that holds a key does not carry an error case for a length it already knows is right.
Take thirty-two bytes for a key. A different length is reported as CryptoError_MacKeyInvalid; nothing else about a key can be wrong.
initialize a Poly1305 context
update a context with a bytestring
updates a context with multiples bytestring
finalize the context into a digest bytestring
One-pass authorization creation