HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulecrypton-1.0.4Haskell2010

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-1.0.4
  • Exports3
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • 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