Files
node/doc/api
Tobias Nießen 33a6d1fe3a crypto: remove ERR_CRYPTO_SCRYPT_INVALID_PARAMETER
It is confusing to have both ERR_CRYPTO_SCRYPT_INVALID_PARAMETER and
ERR_CRYPTO_INVALID_SCRYPT_PARAMS. The former was the original error
code, added in 371103dae8, but parameter
validation gradually changed and now produces
ERR_CRYPTO_INVALID_SCRYPT_PARAMS for all parameter validation errors
coming from OpenSSL, as well as different error codes for validation
errors coming from JavaScript. The only remaining use of
ERR_CRYPTO_SCRYPT_INVALID_PARAMETER is in the validation logic that
ensures that no two synonymous options were passed. We already have an
error code for that particular case, ERR_INCOMPATIBLE_OPTION_PAIR, so
replace these last instances of ERR_CRYPTO_SCRYPT_INVALID_PARAMETER with
that error code and remove ERR_CRYPTO_SCRYPT_INVALID_PARAMETER. If there
ever is need again for such an error code, we can just use
ERR_CRYPTO_INVALID_SCRYPT_PARAMS.

Refs: https://github.com/nodejs/node/pull/35093
Refs: https://github.com/nodejs/node/pull/21525
Refs: https://github.com/nodejs/node/pull/20816
PR-URL: https://github.com/nodejs/node/pull/53305
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
2024-07-10 16:38:00 +00:00
..
2024-03-18 14:27:59 +00:00
2024-07-02 10:50:11 +02:00
2023-04-23 13:34:08 +00:00
2024-07-08 15:55:43 +00:00
2024-07-02 10:50:11 +02:00
2024-07-06 11:06:46 +00:00
2024-06-29 13:57:49 +00:00
2024-06-23 06:08:59 +00:00
2024-07-09 07:16:04 +00:00
2024-07-02 10:50:11 +02:00
2023-05-21 16:41:28 +00:00
2024-07-02 10:50:11 +02:00
2024-05-07 17:32:24 +02:00
2024-03-26 17:42:38 +00:00
2024-05-03 13:30:09 +00:00