Updated SCRYPT_N implementation.