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()`.
  • Loading branch information
BridgeAR committed Sep 23, 2019
1 parent 0692995 commit a6d651a
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 a6d651a

Please sign in to comment.