Skip to content

Commit 3de1fc6

Browse files
BridgeARtargos
authored andcommitted
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: #29684 Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 04df7db commit 3de1fc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/crypto.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1643,7 +1643,7 @@ changes:
16431643

16441644
* `algorithm` {string}
16451645
* `key` {string | Buffer | TypedArray | DataView | KeyObject}
1646-
* `iv` {string | Buffer | TypedArray | DataView}
1646+
* `iv` {string | Buffer | TypedArray | DataView | null}
16471647
* `options` {Object} [`stream.transform` options][]
16481648
* Returns: {Cipher}
16491649

@@ -1737,7 +1737,7 @@ changes:
17371737

17381738
* `algorithm` {string}
17391739
* `key` {string | Buffer | TypedArray | DataView}
1740-
* `iv` {string | Buffer | TypedArray | DataView}
1740+
* `iv` {string | Buffer | TypedArray | DataView | null}
17411741
* `options` {Object} [`stream.transform` options][]
17421742
* Returns: {Decipher}
17431743

0 commit comments

Comments
 (0)