HORIZON HASKELLDocslts/ghc-10.0.xaa25b892026-10-10Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · aa25b89 · 2026-10-10

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