HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulecryptonite-0.30Haskell2010

Crypto.ConstructHash.MiyaguchiPreneel

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

Synopsis
  • Packagecryptonite-0.30
  • 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