doc: fix typos and inconsistencies in crypto.md and webcrypto.md · nodejs/node@aa1e0bc
@@ -504,8 +504,8 @@ const decrypted = new TextDecoder().decode(await crypto.subtle.decrypt(
504504505505## Algorithm matrix
506506507-The tables details the algorithms supported by the Node.js Web Crypto API
508-implementation and the APIs supported for each:
507+The following tables detail the algorithms supported by the Node.js Web
508+Crypto API implementation and the APIs supported for each:
509509510510### Key Management APIs
511511@@ -742,7 +742,7 @@ Valid key usages depend on the key algorithm (identified by
742742| `'ECDSA'` | | ✔ | | | |
743743| `'Ed25519'` | | ✔ | | | |
744744| `'Ed448'`[^secure-curves] | | ✔ | | | |
745-| `'HDKF'` | | | ✔ | | |
745+| `'HKDF'` | | | ✔ | | |
746746| `'HMAC'` | | ✔ | | | |
747747| `'KMAC128'`[^modern-algos] | | ✔ | | | |
748748| `'KMAC256'`[^modern-algos] | | ✔ | | | |
@@ -979,7 +979,7 @@ a new {CryptoKey} based on the method and parameters in `derivedKeyAlgorithm`.
979979980980Calling this method is equivalent to calling [`subtle.deriveBits()`][] to
981981generate raw keying material, then passing the result into the
982-[`subtle.importKey()`][] method using the `deriveKeyAlgorithm`, `extractable`, and
982+[`subtle.importKey()`][] method using the `derivedKeyAlgorithm`, `extractable`, and
983983`keyUsages` parameters as input.
984984985985The algorithms currently supported include:
@@ -1325,7 +1325,7 @@ The algorithms currently supported include:
13251325| `'ECDSA'` | ✔ | ✔ | ✔ | ✔ | | ✔ | |
13261326| `'Ed25519'` | ✔ | ✔ | ✔ | ✔ | | ✔ | |
13271327| `'Ed448'`[^secure-curves] | ✔ | ✔ | ✔ | ✔ | | ✔ | |
1328-| `'HDKF'` | | | | ✔ | ✔ | | |
1328+| `'HKDF'` | | | | ✔ | ✔ | | |
13291329| `'HMAC'` | | | ✔ | ✔ | ✔ | | |
13301330| `'KMAC128'`[^modern-algos] | | | ✔ | | ✔ | | |
13311331| `'KMAC256'`[^modern-algos] | | | ✔ | | ✔ | | |
@@ -1449,14 +1449,14 @@ The unwrapped key algorithms supported include:
14491449* `'Ed25519'`
14501450* `'Ed448'`[^secure-curves]
14511451* `'HMAC'`
1452-* `'KMAC128'`[^secure-curves]
1453-* `'KMAC256'`[^secure-curves]
1452+* `'KMAC128'`[^modern-algos]
1453+* `'KMAC256'`[^modern-algos]
14541454* `'ML-DSA-44'`[^modern-algos]
14551455* `'ML-DSA-65'`[^modern-algos]
14561456* `'ML-DSA-87'`[^modern-algos]
14571457* `'ML-KEM-512'`[^modern-algos]
14581458* `'ML-KEM-768'`[^modern-algos]
1459-* `'ML-KEM-1024'`[^modern-algos]v
1459+* `'ML-KEM-1024'`[^modern-algos]
14601460* `'RSA-OAEP'`
14611461* `'RSA-PSS'`
14621462* `'RSASSA-PKCS1-v1_5'`
@@ -1502,8 +1502,8 @@ The algorithms currently supported include:
15021502* `'Ed25519'`
15031503* `'Ed448'`[^secure-curves]
15041504* `'HMAC'`
1505-* `'KMAC128'`[^secure-curves]
1506-* `'KMAC256'`[^secure-curves]
1505+* `'KMAC128'`[^modern-algos]
1506+* `'KMAC256'`[^modern-algos]
15071507* `'ML-DSA-44'`[^modern-algos]
15081508* `'ML-DSA-65'`[^modern-algos]
15091509* `'ML-DSA-87'`[^modern-algos]
@@ -1850,7 +1850,7 @@ added: v24.7.0
18501850added: v24.7.0
18511851-->
185218521853-* Type: {string} Must be `Ed448`[^secure-curves], `'ML-DSA-44'`[^modern-algos],
1853+* Type: {string} Must be `'Ed448'`[^secure-curves], `'ML-DSA-44'`[^modern-algos],
18541854 `'ML-DSA-65'`[^modern-algos], or `'ML-DSA-87'`[^modern-algos].
1855185518561856#### `contextParams.context`
@@ -1884,7 +1884,7 @@ changes:
18841884added: v24.7.0
18851885-->
188618861887-* Type: {string} Must be `'cSHAKE128'`[^modern-algos] or `'cSHAKE256'`[^modern-algos]
1887+* Type: {string} Must be `'cSHAKE128'`[^modern-algos] or `'cSHAKE256'`[^modern-algos].
1888188818891889#### `cShakeParams.outputLength`
18901890@@ -1902,7 +1902,7 @@ added: v24.7.0
1902190219031903* Type: {ArrayBuffer|TypedArray|DataView|Buffer|undefined}
190419041905-The `functionName` member represents represents the function name, used by NIST to define
1905+The `functionName` member represents the function name, used by NIST to define
19061906functions based on cSHAKE.
19071907The Node.js Web Crypto API implementation only supports zero-length functionName
19081908which is equivalent to not providing functionName at all.
@@ -1941,9 +1941,9 @@ added: v15.0.0
1941194119421942* Type: {CryptoKey}
194319431944-ECDH key derivation operates by taking as input one parties private key and
1945-another parties public key -- using both to generate a common shared secret.
1946-The `ecdhKeyDeriveParams.public` property is set to the other parties public
1944+ECDH key derivation operates by taking as input one party's private key and
1945+another party's public key -- using both to generate a common shared secret.
1946+The `ecdhKeyDeriveParams.public` property is set to the other party's public
19471947key.
1948194819491949### Class: `EcdsaParams`