From 3de1fc695828ac2cbe5ff0208be4382b16be4296 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 4dce34692c2aea..7dd4e2ecbf4db6 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}