Skip to content

Commit d079d8f

Browse files
authored
doc,crypto: update subtle.generateKey and subtle.importKey
PR-URL: #59851 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 4984b15 commit d079d8f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

doc/api/webcrypto.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,9 +1220,9 @@ changes:
12201220
* `keyUsages` {string\[]} See [Key usages][].
12211221
* Returns: {Promise} Fulfills with a {CryptoKey|CryptoKeyPair} upon success.
12221222
1223-
Using the method and parameters provided in `algorithm`, `subtle.generateKey()`
1224-
attempts to generate new keying material. Depending the method used, the method
1225-
may generate either a single {CryptoKey} or a {CryptoKeyPair}.
1223+
Using the parameters provided in `algorithm`, this method
1224+
attempts to generate new keying material. Depending on the algorithm used
1225+
either a single {CryptoKey} or a {CryptoKeyPair} is generated.
12261226
12271227
The {CryptoKeyPair} (public and private key) generating algorithms supported
12281228
include:
@@ -1297,10 +1297,11 @@ changes:
12971297
* `keyUsages` {string\[]} See [Key usages][].
12981298
* Returns: {Promise} Fulfills with a {CryptoKey} upon success.
12991299
1300-
The [`subtle.importKey()`][] method attempts to interpret the provided `keyData`
1300+
This method attempts to interpret the provided `keyData`
13011301
as the given `format` to create a {CryptoKey} instance using the provided
13021302
`algorithm`, `extractable`, and `keyUsages` arguments. If the import is
1303-
successful, the returned promise will be resolved with the created {CryptoKey}.
1303+
successful, the returned promise will be resolved with a {CryptoKey}
1304+
representation of the key material.
13041305
13051306
If importing KDF algorithm keys, `extractable` must be `false`.
13061307

0 commit comments

Comments
 (0)