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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulecrypton-2.1.7Haskell2010

Crypto.MAC.CMAC

Provide the CMAC (Cipher based Message Authentification Code) base algorithm. http://en.wikipedia.org/wiki/CMAC http://csrc.nist.gov/publications/nistpubs/800-38B/SP_800-38B.pdf

  • 1 type
  • 2 values
  • Packagecrypton-2.1.7
  • Exports3
  • LanguageHaskell2010
  • LicenceBSD-3-Clause AND MIT AND ISC
  • SourceCMAC.hs
valuecmac
  1. :: (ByteArrayAccess bin, BlockCipher cipher)
  2. => cipher

    key to compute CMAC with

  3. -> bin

    input message

  4. -> CMAC cipher

    output tag

#

compute a MAC using the supplied cipher

newtypenewtype CMAC a
#

Authentication code

Instances2Eq, ByteArrayAccess
valuesubKeys
  1. :: (BlockCipher k, ByteArray ba)
  2. => k

    key to compute CMAC with

  3. -> (ba, ba)

    sub-keys to compute CMAC

#

make sub-keys used in CMAC