Skip to content

Commit ab6991f

Browse files
authored
doc,crypto: cleanup unlinked and self method references webcrypto.md
PR-URL: #59608 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ulises Gascón <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 886e4b3 commit ab6991f

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

doc/api/webcrypto.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ added: v15.0.0
654654
* Type: {boolean}
655655
656656
When `true`, the {CryptoKey} can be extracted using either
657-
`subtleCrypto.exportKey()` or `subtleCrypto.wrapKey()`.
657+
[`subtle.exportKey()`][] or [`subtle.wrapKey()`][].
658658
659659
Read-only.
660660
@@ -846,7 +846,7 @@ changes:
846846
* Returns: {Promise} Fulfills with an {ArrayBuffer} upon success.
847847
848848
Using the method and parameters specified in `algorithm` and the keying
849-
material provided by `key`, `subtle.decrypt()` attempts to decipher the
849+
material provided by `key`, this method attempts to decipher the
850850
provided `data`. If successful, the returned promise will be resolved with
851851
an {ArrayBuffer} containing the plaintext result.
852852
@@ -888,7 +888,7 @@ changes:
888888
<!--lint enable maximum-line-length remark-lint-->
889889
890890
Using the method and parameters specified in `algorithm` and the keying
891-
material provided by `baseKey`, `subtle.deriveBits()` attempts to generate
891+
material provided by `baseKey`, this method attempts to generate
892892
`length` bits.
893893
894894
When `length` is not provided or `null` the maximum number of bits for a given
@@ -930,12 +930,12 @@ changes:
930930
<!--lint enable maximum-line-length remark-lint-->
931931
932932
Using the method and parameters specified in `algorithm`, and the keying
933-
material provided by `baseKey`, `subtle.deriveKey()` attempts to generate
933+
material provided by `baseKey`, this method attempts to generate
934934
a new {CryptoKey} based on the method and parameters in `derivedKeyAlgorithm`.
935935
936-
Calling `subtle.deriveKey()` is equivalent to calling `subtle.deriveBits()` to
936+
Calling this method is equivalent to calling [`subtle.deriveBits()`][] to
937937
generate raw keying material, then passing the result into the
938-
`subtle.importKey()` method using the `deriveKeyAlgorithm`, `extractable`, and
938+
[`subtle.importKey()`][] method using the `deriveKeyAlgorithm`, `extractable`, and
939939
`keyUsages` parameters as input.
940940
941941
The algorithms currently supported include:
@@ -963,7 +963,7 @@ changes:
963963
* `data` {ArrayBuffer|TypedArray|DataView|Buffer}
964964
* Returns: {Promise} Fulfills with an {ArrayBuffer} upon success.
965965
966-
Using the method identified by `algorithm`, `subtle.digest()` attempts to
966+
Using the method identified by `algorithm`, this method attempts to
967967
generate a digest of `data`. If successful, the returned promise is resolved
968968
with an {ArrayBuffer} containing the computed digest.
969969
@@ -1040,7 +1040,7 @@ changes:
10401040
* Returns: {Promise} Fulfills with an {ArrayBuffer} upon success.
10411041
10421042
Using the method and parameters specified by `algorithm` and the keying
1043-
material provided by `key`, `subtle.encrypt()` attempts to encipher `data`.
1043+
material provided by `key`, this method attempts to encipher `data`.
10441044
If successful, the returned promise is resolved with an {ArrayBuffer}
10451045
containing the encrypted result.
10461046
@@ -1230,7 +1230,7 @@ changes:
12301230
* `keyUsages` {string\[]} See [Key usages][].
12311231
* Returns: {Promise} Fulfills with a {CryptoKey} upon success.
12321232
1233-
The `subtle.importKey()` method attempts to interpret the provided `keyData`
1233+
The [`subtle.importKey()`][] method attempts to interpret the provided `keyData`
12341234
as the given `format` to create a {CryptoKey} instance using the provided
12351235
`algorithm`, `extractable`, and `keyUsages` arguments. If the import is
12361236
successful, the returned promise will be resolved with the created {CryptoKey}.
@@ -1291,7 +1291,7 @@ changes:
12911291
<!--lint enable maximum-line-length remark-lint-->
12921292
12931293
Using the method and parameters given by `algorithm` and the keying material
1294-
provided by `key`, `subtle.sign()` attempts to generate a cryptographic
1294+
provided by `key`, this method attempts to generate a cryptographic
12951295
signature of `data`. If successful, the returned promise is resolved with
12961296
an {ArrayBuffer} containing the generated signature.
12971297
@@ -1337,11 +1337,11 @@ changes:
13371337
* Returns: {Promise} Fulfills with a {CryptoKey} upon success.
13381338
13391339
In cryptography, "wrapping a key" refers to exporting and then encrypting the
1340-
keying material. The `subtle.unwrapKey()` method attempts to decrypt a wrapped
1340+
keying material. This method attempts to decrypt a wrapped
13411341
key and create a {CryptoKey} instance. It is equivalent to calling
1342-
`subtle.decrypt()` first on the encrypted key data (using the `wrappedKey`,
1342+
[`subtle.decrypt()`][] first on the encrypted key data (using the `wrappedKey`,
13431343
`unwrapAlgo`, and `unwrappingKey` arguments as input) then passing the results
1344-
in to the `subtle.importKey()` method using the `unwrappedKeyAlgo`,
1344+
to the [`subtle.importKey()`][] method using the `unwrappedKeyAlgo`,
13451345
`extractable`, and `keyUsages` arguments as inputs. If successful, the returned
13461346
promise is resolved with a {CryptoKey} object.
13471347
@@ -1406,7 +1406,7 @@ changes:
14061406
<!--lint enable maximum-line-length remark-lint-->
14071407
14081408
Using the method and parameters given in `algorithm` and the keying material
1409-
provided by `key`, `subtle.verify()` attempts to verify that `signature` is
1409+
provided by `key`, this method attempts to verify that `signature` is
14101410
a valid cryptographic signature of `data`. The returned promise is resolved
14111411
with either `true` or `false`.
14121412
@@ -1447,12 +1447,12 @@ changes:
14471447
<!--lint enable maximum-line-length remark-lint-->
14481448
14491449
In cryptography, "wrapping a key" refers to exporting and then encrypting the
1450-
keying material. The `subtle.wrapKey()` method exports the keying material into
1450+
keying material. This method exports the keying material into
14511451
the format identified by `format`, then encrypts it using the method and
14521452
parameters specified by `wrapAlgo` and the keying material provided by
1453-
`wrappingKey`. It is the equivalent to calling `subtle.exportKey()` using
1453+
`wrappingKey`. It is the equivalent to calling [`subtle.exportKey()`][] using
14541454
`format` and `key` as the arguments, then passing the result to the
1455-
`subtle.encrypt()` method using `wrappingKey` and `wrapAlgo` as inputs. If
1455+
[`subtle.encrypt()`][] method using `wrappingKey` and `wrapAlgo` as inputs. If
14561456
successful, the returned promise will be resolved with an {ArrayBuffer}
14571457
containing the encrypted key data.
14581458

0 commit comments

Comments
 (0)