License | BSD-style |
---|---|
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell2010 |
Password Based Key Derivation Function 2
- type PRF password = password -> Bytes -> Bytes
- prfHMAC :: (HashAlgorithm a, ByteArrayAccess password) => a -> PRF password
- data Parameters = Parameters {
- iterCounts :: Int
- outputLength :: Int
- generate :: (ByteArrayAccess password, ByteArrayAccess salt, ByteArray ba) => PRF password -> Parameters -> password -> salt -> ba
- fastPBKDF2_SHA1 :: (ByteArrayAccess password, ByteArrayAccess salt, ByteArray out) => Parameters -> password -> salt -> out
- fastPBKDF2_SHA256 :: (ByteArrayAccess password, ByteArrayAccess salt, ByteArray out) => Parameters -> password -> salt -> out
- fastPBKDF2_SHA512 :: (ByteArrayAccess password, ByteArrayAccess salt, ByteArray out) => Parameters -> password -> salt -> out
Documentation
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
Parameters | |
|
generate :: (ByteArrayAccess password, ByteArrayAccess salt, ByteArray ba) => PRF password -> Parameters -> password -> salt -> ba Source #
generate the pbkdf2 key derivation function from the output
fastPBKDF2_SHA1 :: (ByteArrayAccess password, ByteArrayAccess salt, ByteArray out) => Parameters -> password -> salt -> out Source #
fastPBKDF2_SHA256 :: (ByteArrayAccess password, ByteArrayAccess salt, ByteArray out) => Parameters -> password -> salt -> out Source #
fastPBKDF2_SHA512 :: (ByteArrayAccess password, ByteArrayAccess salt, ByteArray out) => Parameters -> password -> salt -> out Source #