HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulecrypton-1.0.4Haskell2010

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
  • 1 value
  • Packagecrypton-1.0.4
  • Exports2
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • 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