HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Modulecrypton-2.1.7Haskell2010

Crypto.MAC.Poly1305

Poly1305 implementation

  • 4 types
  • 7 values
  • Packagecrypton-2.1.7
  • Exports11
  • LanguageHaskell2010
  • LicenceBSD-3-Clause AND MIT AND ISC
  • SourcePoly1305.hs
typetype Ctx = State
#

Deprecated. use Poly1305 State instead

Poly1305 State. use State instead of Ctx

newtypenewtype State
#

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.

Instances1ByteArrayAccess
newtypenewtype Key
#

A 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.

Instances3Eq, NFData, ByteArrayAccess
  • Eq KeyDefined in crypton-2.1.7 · Crypto.Internal.Poly1305
  • NFData KeyDefined in crypton-2.1.7 · Crypto.Internal.Poly1305
  • ByteArrayAccess KeyDefined in crypton-2.1.7 · Crypto.Internal.Poly1305
newtypenewtype Auth
#

Poly1305 Auth

Constructors

Instances3Eq, NFData, ByteArrayAccess
  • Eq AuthDefined in crypton-2.1.7 · Crypto.MAC.Poly1305
  • NFData AuthDefined in crypton-2.1.7 · Crypto.MAC.Poly1305
  • ByteArrayAccess AuthDefined in crypton-2.1.7 · Crypto.MAC.Poly1305

Incremental MAC Functions

4 declarations

One-pass MAC function

1 declaration