scrypt

@safe
void
scrypt
(
P
S
)
(
ubyte[] output
,
in P pass
,
in S salt
,
in uint N
,
in uint r
,
in uint p
)
in { assert (p <= ((1L << 32) - 1) * 32 / (r * 128), "parallelization parameter p too large"); assert (output.length < 1L << 32, "dkLen must be smaller than 2^32"); }

Parameters

output
Type: ubyte[]

Output buffer for derived key. Buffer length defines the key length. Lenght < 2^32.

pass
Type: P

Secret password. Either a string or something else that can be casted to const ubyte[].

salt
Type: S

Cryptographic salt. Either a string or something else that can be casted to const ubyte[].

N
Type: uint

CPU/memory cost parameter

r
Type: uint

block size parameter

p
Type: uint

parallelization parameter. p <= (2^32-1)*hashLen/MFLen

Meta