var password = sjcl.codec.hex.toBits("70617373776F7264"); /* "password" */
var salt = sjcl.codec.hex.toBits("73616C74"); /* "salt" */
var N = 2;
var r = 7;
var p = 1;
var keySize = 32;
var derivedKey = sjcl.misc.scrypt(password, salt, N, r, p, keySize * 8);
console.log(sjcl.codec.hex.fromBits(derivedKey));
This prints:
But it should print:
You can confirm with this Botan program: