Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit aebe532

Browse filesBrowse files
panvadanielleadams
authored andcommitted
doc: consistent webcrypto node.keyObject format
PR-URL: #37200 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 596bfb3 commit aebe532
Copy full SHA for aebe532

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Collapse file

‎doc/api/webcrypto.md‎

Copy file name to clipboardExpand all lines: doc/api/webcrypto.md
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -608,10 +608,10 @@ added: v15.0.0
608608
-->
609609

610610
* `format`: {string} Must be one of `'raw'`, `'pkcs8'`, `'spki'`, `'jwk'`, or
611-
`node.keyObject`.
611+
`'node.keyObject'`.
612612
* `key`: {CryptoKey}
613613
* Returns: {Promise} containing {ArrayBuffer}, or, if `format` is
614-
`node.keyObject`, a {KeyObject}.
614+
`'node.keyObject'`, a {KeyObject}.
615615

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

@@ -695,7 +695,7 @@ added: v15.0.0
695695
-->
696696

697697
* `format`: {string} Must be one of `'raw'`, `'pkcs8'`, `'spki'`, `'jwk'`, or
698-
`node.keyObject`.
698+
`'node.keyObject'`.
699699
* `keyData`: {ArrayBuffer|TypedArray|DataView|Buffer|KeyObject}
700700
<!--lint disable maximum-line-length remark-lint-->
701701
* `algorithm`: {RsaHashedImportParams|EcKeyImportParams|HmacImportParams|AesImportParams|Pbkdf2ImportParams|NodeDsaImportParams|NodeDhImportParams|NodeScryptImportParams|NodeEdKeyImportParams}
@@ -1465,7 +1465,7 @@ added: v15.0.0
14651465

14661466
The Node.js Web Crypto API extends various aspects of the Web Crypto API.
14671467
These extensions are consistently identified by prepending names with the
1468-
`node.` prefix. For instance, the `node.keyObject` key format can be
1468+
`node.` prefix. For instance, the `'node.keyObject'` key format can be
14691469
used with the `subtle.exportKey()` and `subtle.importKey()` methods to
14701470
convert between a WebCrypto {CryptoKey} object and a Node.js {KeyObject}.
14711471

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.