Parameters for Scrypt
Modulecrypton-2.1.7Haskell2010
Crypto.KDF.Scrypt
Scrypt key derivation function as defined in Colin Percival's paper "Stronger Key Derivation via Sequential Memory-Hard Functions" http://www.tarsnap.com/scrypt/scrypt.pdf.
- 1 type
- 2 values
- Packagecrypton-2.1.7
- Exports3
- LanguageHaskell2010
- LicenceBSD-3-Clause AND MIT AND ISC
- SourceScrypt.hs
Generate the scrypt key derivation data
Parameters the implementation refuses raise a CryptoError; tryGenerate reports the same condition as CryptoFailed.
Generate the scrypt key derivation data, reporting parameters the implementation refuses rather than raising.
n has to be a power of two, and r times p has to stay below 2^30.