diff options
author | Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> | 2022-01-24 19:09:16 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2022-02-05 19:36:48 +0300 |
commit | 8c4b8b201ada6b76d5306c9c7f352e45087fb4a9 (patch) | |
tree | 0f3159d3dd6aad1159292956f1fe1550fb41d06a /doc/api/crypto.md | |
parent | 217acb9036f39ea6088cee75f70f11602997e15f (diff) |
lib: replace validator and error
Refs: https://github.com/nodejs/node/pull/41660
PR-URL: https://github.com/nodejs/node/pull/41678
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/crypto.md')
-rw-r--r-- | doc/api/crypto.md | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/doc/api/crypto.md b/doc/api/crypto.md index f00ee1985fc..d246aed02a0 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -2869,6 +2869,12 @@ This property is deprecated. Please use `crypto.setFips()` and <!-- YAML added: v15.8.0 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/41678 + description: Passing an invalid callback to the `callback` argument + now throws `ERR_INVALID_ARG_TYPE` instead of + `ERR_INVALID_CALLBACK`. --> * `candidate` {ArrayBuffer|SharedArrayBuffer|TypedArray|Buffer|DataView|bigint} @@ -3547,6 +3553,12 @@ Both keys must have the same `asymmetricKeyType`, which must be one of `'dh'` <!-- YAML added: v15.0.0 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/41678 + description: Passing an invalid callback to the `callback` argument + now throws `ERR_INVALID_ARG_TYPE` instead of + `ERR_INVALID_CALLBACK`. --> * `type`: {string} The intended use of the generated secret key. Currently @@ -3592,6 +3604,11 @@ generateKey('hmac', { length: 64 }, (err, key) => { <!-- YAML added: v10.12.0 changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/41678 + description: Passing an invalid callback to the `callback` argument + now throws `ERR_INVALID_ARG_TYPE` instead of + `ERR_INVALID_CALLBACK`. - version: v16.10.0 pr-url: https://github.com/nodejs/node/pull/39927 description: Add ability to define `RSASSA-PSS-params` sequence parameters @@ -3852,6 +3869,12 @@ console.log(key.export().toString('hex')); // e89..........41e <!-- YAML added: v15.8.0 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/41678 + description: Passing an invalid callback to the `callback` argument + now throws `ERR_INVALID_ARG_TYPE` instead of + `ERR_INVALID_CALLBACK`. --> * `size` {number} The size (in bits) of the prime to generate. @@ -4118,6 +4141,12 @@ A convenient alias for [`crypto.webcrypto.getRandomValues()`][]. <!-- YAML added: v15.0.0 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/41678 + description: Passing an invalid callback to the `callback` argument + now throws `ERR_INVALID_ARG_TYPE` instead of + `ERR_INVALID_CALLBACK`. --> * `digest` {string} The digest algorithm to use. @@ -4221,6 +4250,11 @@ console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653' <!-- YAML added: v0.5.5 changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/41678 + description: Passing an invalid callback to the `callback` argument + now throws `ERR_INVALID_ARG_TYPE` instead of + `ERR_INVALID_CALLBACK`. - version: v15.0.0 pr-url: https://github.com/nodejs/node/pull/35093 description: The password and salt arguments can also be ArrayBuffer @@ -4602,6 +4636,11 @@ be passed instead of a public key. <!-- YAML added: v0.5.8 changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/41678 + description: Passing an invalid callback to the `callback` argument + now throws `ERR_INVALID_ARG_TYPE` instead of + `ERR_INVALID_CALLBACK`. - version: v9.0.0 pr-url: https://github.com/nodejs/node/pull/16454 description: Passing `null` as the `callback` argument now throws @@ -4782,6 +4821,11 @@ added: - v7.10.0 - v6.13.0 changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/41678 + description: Passing an invalid callback to the `callback` argument + now throws `ERR_INVALID_ARG_TYPE` instead of + `ERR_INVALID_CALLBACK`. - version: v9.0.0 pr-url: https://github.com/nodejs/node/pull/15231 description: The `buffer` argument may be any `TypedArray` or `DataView`. @@ -4918,6 +4962,12 @@ request. added: - v14.10.0 - v12.19.0 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/41678 + description: Passing an invalid callback to the `callback` argument + now throws `ERR_INVALID_ARG_TYPE` instead of + `ERR_INVALID_CALLBACK`. --> * `min` {integer} Start of random range (inclusive). **Default:** `0`. @@ -5021,6 +5071,11 @@ cryptographic pseudorandom number generator. <!-- YAML added: v10.5.0 changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/41678 + description: Passing an invalid callback to the `callback` argument + now throws `ERR_INVALID_ARG_TYPE` instead of + `ERR_INVALID_CALLBACK`. - version: v15.0.0 pr-url: https://github.com/nodejs/node/pull/35093 description: The password and salt arguments can also be ArrayBuffer @@ -5244,6 +5299,11 @@ Throws an error if FIPS mode is not available. <!-- YAML added: v12.0.0 changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/41678 + description: Passing an invalid callback to the `callback` argument + now throws `ERR_INVALID_ARG_TYPE` instead of + `ERR_INVALID_CALLBACK`. - version: v15.12.0 pr-url: https://github.com/nodejs/node/pull/37500 description: Optional callback argument added. @@ -5340,6 +5400,11 @@ not introduce timing vulnerabilities. <!-- YAML added: v12.0.0 changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/41678 + description: Passing an invalid callback to the `callback` argument + now throws `ERR_INVALID_ARG_TYPE` instead of + `ERR_INVALID_CALLBACK`. - version: v15.12.0 pr-url: https://github.com/nodejs/node/pull/37500 description: Optional callback argument added. |