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