scrypt-n implementation