HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulecrypton-1.0.4Haskell2010

Crypto.ConstructHash.MiyaguchiPreneel

Provide the hash function construction method from block cipher https://en.wikipedia.org/wiki/One-way_compression_function

  • 1 type
  • 2 values
  • Packagecrypton-1.0.4
  • Exports3
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceMiyaguchiPreneel.hs
valuecompute
  1. :: (ByteArrayAccess bin, BlockCipher cipher)
  2. => bin

    input message

  3. -> MiyaguchiPreneel cipher

    output tag

#

Compute Miyaguchi-Preneel one way compress using the inferred block cipher. Only safe when KEY-SIZE equals to BLOCK-SIZE.

Simple usage mp' msg :: MiyaguchiPreneel AES128

valuecompute'
  1. :: (ByteArrayAccess bin, BlockCipher cipher)
  2. => (Bytes -> cipher)

    key build function to compute Miyaguchi-Preneel. care about block-size and key-size

  3. -> bin

    input message

  4. -> MiyaguchiPreneel cipher

    output tag

#

Compute Miyaguchi-Preneel one way compress using the supplied block cipher.