License | BSD-style |
---|---|
Stability | experimental |
Portability | Good |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Port of the bcrypt_pbkdf key derivation function from OpenBSD as described at http://man.openbsd.org/bcrypt_pbkdf.3.
Synopsis
- data Parameters = Parameters {
- iterCounts :: Int
- outputLength :: Int
- generate :: (ByteArray pass, ByteArray salt, ByteArray output) => Parameters -> pass -> salt -> output
- hashInternal :: (ByteArrayAccess pass, ByteArrayAccess salt, ByteArray output) => pass -> salt -> output
Documentation
data Parameters Source #
Parameters | |
|
Instances
Show Parameters Source # | |
Defined in Crypto.KDF.BCryptPBKDF showsPrec :: Int -> Parameters -> ShowS # show :: Parameters -> String # showList :: [Parameters] -> ShowS # | |
Eq Parameters Source # | |
Defined in Crypto.KDF.BCryptPBKDF (==) :: Parameters -> Parameters -> Bool # (/=) :: Parameters -> Parameters -> Bool # | |
Ord Parameters Source # | |
Defined in Crypto.KDF.BCryptPBKDF compare :: Parameters -> Parameters -> Ordering # (<) :: Parameters -> Parameters -> Bool # (<=) :: Parameters -> Parameters -> Bool # (>) :: Parameters -> Parameters -> Bool # (>=) :: Parameters -> Parameters -> Bool # max :: Parameters -> Parameters -> Parameters # min :: Parameters -> Parameters -> Parameters # |
generate :: (ByteArray pass, ByteArray salt, ByteArray output) => Parameters -> pass -> salt -> output Source #
Derive a key of specified length using the bcrypt_pbkdf algorithm.
hashInternal :: (ByteArrayAccess pass, ByteArrayAccess salt, ByteArray output) => pass -> salt -> output Source #
Internal hash function used by generate
.
Normal users should not need this.