HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

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
datadata Parameters
#

Parameters for Scrypt

Constructors

  • Parameters
    • n :: Word64

      Cpu/Memory cost ratio. must be a power of 2 greater than 1. also known as N.

    • r :: Int

      Must satisfy r * p < 2^30

    • p :: Int

      Must satisfy r * p < 2^30

    • outputLength :: Int

      the number of bytes to generate out of Scrypt