diff options
author | Filip Skokan <panva.ip@gmail.com> | 2022-08-11 12:53:00 +0300 |
---|---|---|
committer | Filip Skokan <panva.ip@gmail.com> | 2022-08-12 22:36:29 +0300 |
commit | 159b4d7a94ff95ec7d748b12a91c61c9f1a5a156 (patch) | |
tree | 370c949978b064bb04ae5d422a49b0c7eba93424 /doc/api/crypto.md | |
parent | 85107bdd66af735c5c0f03310ab6167c44cb4432 (diff) |
crypto: allow zero-length IKM in HKDF and in webcrypto PBKDF2
PR-URL: https://github.com/nodejs/node/pull/44201
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'doc/api/crypto.md')
-rw-r--r-- | doc/api/crypto.md | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/doc/api/crypto.md b/doc/api/crypto.md index ba29b669049..88d9137363a 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -4209,6 +4209,9 @@ web-compatible code use [`crypto.webcrypto.getRandomValues()`][] instead. <!-- YAML added: v15.0.0 changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/44201 + description: The input keying material can now be zero-length. - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument @@ -4218,7 +4221,7 @@ changes: * `digest` {string} The digest algorithm to use. * `ikm` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject} The input - keying material. It must be at least one byte in length. + keying material. Must be provided but can be zero-length. * `salt` {string|ArrayBuffer|Buffer|TypedArray|DataView} The salt value. Must be provided but can be zero-length. * `info` {string|ArrayBuffer|Buffer|TypedArray|DataView} Additional info value. @@ -4268,11 +4271,15 @@ hkdf('sha512', 'key', 'salt', 'info', 64, (err, derivedKey) => { <!-- YAML added: v15.0.0 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/44201 + description: The input keying material can now be zero-length. --> * `digest` {string} The digest algorithm to use. * `ikm` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject} The input - keying material. It must be at least one byte in length. + keying material. Must be provided but can be zero-length. * `salt` {string|ArrayBuffer|Buffer|TypedArray|DataView} The salt value. Must be provided but can be zero-length. * `info` {string|ArrayBuffer|Buffer|TypedArray|DataView} Additional info value. |