The Wayback Machine - https://web.archive.org/web/20230202221035/https://github.com/nodejs/node/commit/ebe292113a
Skip to content
Permalink
Browse files
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 ebe292113ab0756f897c1d3669f47a95b31bc7a9
Showing 1 changed file with 2 additions and 2 deletions.
@@ -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.

@@ -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-->

0 comments on commit ebe2921

Please sign in to comment.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.