r = crypto_scrypt(password, n, salt, SCRYPT_SALT_SIZE, SCRYPT_N, SCRYPT_r, SCRYPT_p, pwhash, SCRYPT_OUTPUT_SIZE);
if (r != 0) {
- printf("Failure in scrypt for %s\n", username);
+ fprintf(stderr, "Failure in scrypt for %s\n", username);
return 0;
}
r = crypto_scrypt(password, strlen(password), esalt, SCRYPT_SALT_SIZE, SCRYPT_N, SCRYPT_r, SCRYPT_p, givenpw, SCRYPT_OUTPUT_SIZE);
if (r != 0) {
- printf("Failure in scrypt for %s\n", username);
+ fprintf(stderr, "Failure in scrypt for %s\n", username);
return 0;
}