crypton-0.33: Cryptography Primitives sink
LicenseBSD-style
Stabilityexperimental
PortabilityGood
Safe HaskellSafe-Inferred
LanguageHaskell2010

Crypto.KDF.BCryptPBKDF

Description

Port of the bcrypt_pbkdf key derivation function from OpenBSD as described at http://man.openbsd.org/bcrypt_pbkdf.3.

Synopsis

Documentation

data Parameters #

Constructors

Parameters 

Fields

  • iterCounts :: Int

    The number of user-defined iterations for the algorithm (must be > 0)

  • outputLength :: Int

    The number of bytes to generate out of BCryptPBKDF (must be in 1..1024)

Instances

Instances details
Show Parameters # 
Instance details

Defined in Crypto.KDF.BCryptPBKDF

Methods

showsPrec :: Int -> Parameters -> ShowS #

show :: Parameters -> String #

showList :: [Parameters] -> ShowS #

Eq Parameters # 
Instance details

Defined in Crypto.KDF.BCryptPBKDF

Ord Parameters # 
Instance details

Defined in Crypto.KDF.BCryptPBKDF

generate :: (ByteArray pass, ByteArray salt, ByteArray output) => Parameters -> pass -> salt -> output #

Derive a key of specified length using the bcrypt_pbkdf algorithm.

hashInternal :: (ByteArrayAccess pass, ByteArrayAccess salt, ByteArray output) => pass -> salt -> output #

Internal hash function used by generate.

Normal users should not need this.