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 <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
BridgeAR authored and Trott committed Sep 25, 2019
1 parent 81fee01 commit 5058c7f
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 5058c7f

Please sign in to comment.