From 5058c7f13838801cdc1155227f9aa7267507b49a Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Tue, 24 Sep 2019 01:28:17 +0200 Subject: [PATCH] doc: document that iv may be null when using createCipheriv() This adds `null` to the supported types of the `iv` option when using `crypto.createCipheriv()`. PR-URL: https://github.com/nodejs/node/pull/29684 Reviewed-By: David Carlier Reviewed-By: Ben Noordhuis Reviewed-By: Luigi Pinca --- doc/api/crypto.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 112865f180c895..e8fd9fee50c97c 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -1643,7 +1643,7 @@ changes: * `algorithm` {string} * `key` {string | Buffer | TypedArray | DataView | KeyObject} -* `iv` {string | Buffer | TypedArray | DataView} +* `iv` {string | Buffer | TypedArray | DataView | null} * `options` {Object} [`stream.transform` options][] * Returns: {Cipher} @@ -1737,7 +1737,7 @@ changes: * `algorithm` {string} * `key` {string | Buffer | TypedArray | DataView} -* `iv` {string | Buffer | TypedArray | DataView} +* `iv` {string | Buffer | TypedArray | DataView | null} * `options` {Object} [`stream.transform` options][] * Returns: {Decipher}