Skip to content

Commit

Permalink
doc: document that iv may be null when using createCipheriv()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
BridgeAR authored and targos committed Oct 1, 2019
1 parent 04df7db commit 3de1fc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down Expand Up @@ -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}

Expand Down

0 comments on commit 3de1fc6

Please sign in to comment.