crypton-0.34: Cryptography Primitives sink
LicenseBSD-style
MaintainerKei Hibino <ex8k.hibino@gmail.com>
Stabilityexperimental
Portabilityunknown
Safe HaskellSafe-Inferred
LanguageHaskell2010

Crypto.ConstructHash.MiyaguchiPreneel

Description

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

Synopsis

Documentation

compute Source #

Arguments

:: (ByteArrayAccess bin, BlockCipher cipher) 
=> bin

input message

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

compute' Source #

Arguments

:: (ByteArrayAccess bin, BlockCipher cipher) 
=> (Bytes -> cipher)

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

-> bin

input message

-> MiyaguchiPreneel cipher

output tag

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