Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
doc,crypto: fix WebCryptoAPI import keyData and export return
PR-URL: #46076
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
  • Loading branch information
panva authored and juanarbol committed Jan 31, 2023
1 parent 3968698 commit ebe2921
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/webcrypto.md
Expand Up @@ -689,7 +689,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 @@ -776,7 +776,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 ebe2921

Please sign in to comment.