The PRF used for PBKDF2
Modulecrypton-2.1.7Haskell2010
Crypto.KDF.PBKDF2
Password Based Key Derivation Function 2
- 2 types
- 9 values
- Packagecrypton-2.1.7
- Exports11
- LanguageHaskell2010
- LicenceBSD-3-Clause AND MIT AND ISC
- SourcePBKDF2.hs
PRF for PBKDF2 using HMAC with the hash algorithm as parameter
Parameters for PBKDF2
Constructors
ParametersiterCounts :: Intthe number of user-defined iterations for the algorithms. e.g. WPA2 uses 4000. (must be > 0)
outputLength :: Intthe number of bytes to generate out of PBKDF2 (must not be negative)
generate the pbkdf2 key derivation function from the output
Parameters outside the ranges documented for Parameters raise CryptoError_ParameterInvalid; tryGenerate reports the same condition as CryptoFailed.
generate the pbkdf2 key derivation function from the output, reporting parameters the implementation refuses rather than raising.
PBKDF2 with HMAC-SHA1, using the bundled C implementation.
Parameters outside the ranges documented for Parameters raise CryptoError_ParameterInvalid; tryFastPBKDF2_SHA1 reports the same condition as CryptoFailed.
PBKDF2 with HMAC-SHA1, reporting parameters the implementation refuses rather than raising.
PBKDF2 with HMAC-SHA256, using the bundled C implementation.
Parameters outside the ranges documented for Parameters raise CryptoError_ParameterInvalid; tryFastPBKDF2_SHA256 reports the same condition as CryptoFailed.
PBKDF2 with HMAC-SHA256, reporting parameters the implementation refuses rather than raising.
PBKDF2 with HMAC-SHA512, using the bundled C implementation.
Parameters outside the ranges documented for Parameters raise CryptoError_ParameterInvalid; tryFastPBKDF2_SHA512 reports the same condition as CryptoFailed.
PBKDF2 with HMAC-SHA512, reporting parameters the implementation refuses rather than raising.