Crypto-4.1.0: DES, Blowfish, AES, TEA, SHA1, MD5, RSA, BubbleBabble, Hexdump, Support for Word128, Word192 and Word256 and Beyond, PKCS5 Padding, Various Encryption Modes e.g. Cipher Block Chaining all in one package.

Portabilityportable
Stabilityexperimental
Maintainerdominic.steinitz@blueyonder.co.uk

Codec.Encryption.RSA.MGF

Contents

Description

Implements the mask generation function as specified in: ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-1/pkcs-1v2-1.pdf

Synopsis

Function Types

mgf :: ([Octet] -> [Octet]) -> [Octet] -> Int -> [Octet]Source

Take a hash function, a seed and the intended length of the the mask and deliver a mask of the requested length.