cryptonite-0.27: Cryptography Primitives sink
License BSD-style
Maintainer Vincent Hanquez <vincent@snarc.org>
Stability experimental
Portability unknown
Safe Haskell None
Language Haskell2010

Crypto.KDF.PBKDF2

Description

Password Based Key Derivation Function 2

Synopsis

Documentation

type PRF password Source #

Arguments

= password

the password parameters

-> Bytes

the content

-> Bytes

prf(password,content)

The PRF used for PBKDF2

prfHMAC :: ( HashAlgorithm a, ByteArrayAccess password) => a -> PRF password Source #

PRF for PBKDF2 using HMAC with the hash algorithm as parameter

data Parameters Source #

Parameters for PBKDF2

Constructors

Parameters

Fields

generate :: ( ByteArrayAccess password, ByteArrayAccess salt, ByteArray ba) => PRF password -> Parameters -> password -> salt -> ba Source #

generate the pbkdf2 key derivation function from the output