@blockchaincommons/crypto - v1.0.0-beta.3
    Preparing search index...

    Interface ScryptOptions

    Options for scrypt. Defaults are the reference parameters.

    interface ScryptOptions {
        dkLen: number;
        logN?: number;
        r?: number;
        p?: number;
        maxmem?: number;
    }
    Index
    dkLen: number

    Derived key length in bytes. With any of logN, r, p given it must be in [10, 64] (the reference's parameterised path, scrypt::Params::new); with the defaults any length ≥ 1 is accepted (the reference's default path).

    logN?: number

    log₂ of the CPU/memory cost N. Default 17 (N = 131072). An integer in [0, 32] and below 16·r (scrypt::Params::new); 0 is N = 1, which the reference derives with. Values above 32 need at least 3.3 TiB.

    r?: number

    Block size. Default 8.

    p?: number

    Parallelism. Default 1. r·p must be below 2^30.

    maxmem?: number

    An optional ceiling in bytes on the working memory, 128·r·(N + p + 1). By default there is none, as in the reference, which allocates whatever the parameters imply; a parameter set above the ceiling is InvalidParameter. A ceiling does not bypass the logN limit or the runtime's allocation limits.