Skip to content

Commit

Permalink
doc,crypto: fix WebCryptoAPI import keyData and export return
Browse files Browse the repository at this point in the history
PR-URL: #46076
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
  • Loading branch information
panva authored Jan 7, 2023
1 parent 40815df commit ce1108a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/webcrypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ changes:

* `format`: {string} Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`.
* `key`: {CryptoKey}
* Returns: {Promise} containing {ArrayBuffer}.
* Returns: {Promise} containing {ArrayBuffer|Object}.

Exports the given key into the specified format, if supported.

Expand Down Expand Up @@ -799,7 +799,7 @@ changes:
-->

* `format`: {string} Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`.
* `keyData`: {ArrayBuffer|TypedArray|DataView|Buffer|KeyObject}
* `keyData`: {ArrayBuffer|TypedArray|DataView|Buffer|Object}

<!--lint disable maximum-line-length remark-lint-->

Expand Down

0 comments on commit ce1108a

Please sign in to comment.