InvalidParameter unless password and salt are
Uint8Arrays and options an object; when dkLen is outside its domain
(see ScryptOptions.dkLen), logN not in [0, 32] or not below 16·r
(scrypt requires N < 2^(128·r/8)), r or p not ≥ 1, r·p not below
2^30, or the parameters exceed maxmem.
Throws
InvalidParameterunlesspasswordandsaltareUint8Arrays andoptionsan object; whendkLenis outside its domain (see ScryptOptions.dkLen),logNnot in [0, 32] or not below16·r(scrypt requiresN < 2^(128·r/8)),rorpnot ≥ 1,r·pnot below 2^30, or the parameters exceedmaxmem.