@@ -848,7 +848,7 @@ The algorithms currently supported include:
848848* ` ' ML-KEM-768' ` [^modern-algos]
849849* ` ' ML-KEM-1024' ` [^modern-algos]
850850
851- ### ` subtle .decapsulateKey (decapsulationAlgorithm, decapsulationKey, ciphertext, sharedKeyAlgorithm, extractable, usages )`
851+ ### ` subtle .decapsulateKey (decapsulationAlgorithm, decapsulationKey, ciphertext, sharedKeyAlgorithm, extractable, keyUsages )`
852852
853853<!-- YAML
854854added: v24.7.0
@@ -861,7 +861,7 @@ added: v24.7.0
861861* ` ciphertext` {ArrayBuffer|TypedArray|DataView|Buffer}
862862* ` sharedKeyAlgorithm` {string|Algorithm|HmacImportParams|AesDerivedKeyParams|KmacImportParams}
863863* ` extractable` {boolean}
864- * ` usages ` {string\[ ]} See [Key usages][].
864+ * ` keyUsages ` {string\[ ]} See [Key usages][].
865865* Returns: {Promise} Fulfills with {CryptoKey} upon success.
866866
867867A message recipient uses their asymmetric private key to decrypt an
@@ -959,7 +959,7 @@ The algorithms currently supported include:
959959* ` ' X25519' `
960960* ` ' X448' ` [^secure-curves]
961961
962- ### ` subtle .deriveKey (algorithm, baseKey, derivedKeyAlgorithm , extractable, keyUsages)`
962+ ### ` subtle .deriveKey (algorithm, baseKey, derivedKeyType , extractable, keyUsages)`
963963
964964<!-- YAML
965965added: v15.0.0
@@ -978,7 +978,7 @@ changes:
978978
979979* ` algorithm` {EcdhKeyDeriveParams|HkdfParams|Pbkdf2Params|Argon2Params}
980980* ` baseKey` {CryptoKey}
981- * ` derivedKeyAlgorithm ` {string|Algorithm|HmacImportParams|AesDerivedKeyParams|KmacImportParams}
981+ * ` derivedKeyType ` {string|Algorithm|HmacImportParams|AesDerivedKeyParams|KmacImportParams}
982982* ` extractable` {boolean}
983983* ` keyUsages` {string\[ ]} See [Key usages][].
984984* Returns: {Promise} Fulfills with a {CryptoKey} upon success.
@@ -987,11 +987,11 @@ changes:
987987
988988Using the method and parameters specified in ` algorithm` , and the keying
989989material provided by ` baseKey` , this method attempts to generate
990- a new {CryptoKey} based on the method and parameters in ` derivedKeyAlgorithm ` .
990+ a new {CryptoKey} based on the method and parameters in ` derivedKeyType ` .
991991
992992Calling this method is equivalent to calling [` subtle .deriveBits ()` ][] to
993993generate raw keying material, then passing the result into the
994- [` subtle .importKey ()` ][] method using the ` derivedKeyAlgorithm ` , ` extractable` , and
994+ [` subtle .importKey ()` ][] method using the ` derivedKeyType ` , ` extractable` , and
995995` keyUsages` parameters as input.
996996
997997The algorithms currently supported include:
@@ -1070,7 +1070,7 @@ The algorithms currently supported include:
10701070* ` ' ML-KEM-768' ` [^modern-algos]
10711071* ` ' ML-KEM-1024' ` [^modern-algos]
10721072
1073- ### ` subtle .encapsulateKey (encapsulationAlgorithm, encapsulationKey, sharedKeyAlgorithm, extractable, usages )`
1073+ ### ` subtle .encapsulateKey (encapsulationAlgorithm, encapsulationKey, sharedKeyAlgorithm, extractable, keyUsages )`
10741074
10751075<!-- YAML
10761076added: v24.7.0
@@ -1082,7 +1082,7 @@ added: v24.7.0
10821082* ` encapsulationKey` {CryptoKey}
10831083* ` sharedKeyAlgorithm` {string|Algorithm|HmacImportParams|AesDerivedKeyParams|KmacImportParams}
10841084* ` extractable` {boolean}
1085- * ` usages ` {string\[ ]} See [Key usages][].
1085+ * ` keyUsages ` {string\[ ]} See [Key usages][].
10861086* Returns: {Promise} Fulfills with {EncapsulatedKey} upon success.
10871087
10881088Uses a message recipient's asymmetric public key to encrypt a temporary symmetric key.
@@ -1414,7 +1414,7 @@ The algorithms currently supported include:
14141414* ` ' RSA-PSS' `
14151415* ` ' RSASSA-PKCS1-v1_5' `
14161416
1417- ### ` subtle .unwrapKey (format, wrappedKey, unwrappingKey, unwrapAlgo, unwrappedKeyAlgo , extractable, keyUsages)`
1417+ ### ` subtle .unwrapKey (format, wrappedKey, unwrappingKey, unwrapAlgorithm, unwrappedKeyAlgorithm , extractable, keyUsages)`
14181418
14191419<!-- YAML
14201420added: v15.0.0
@@ -1434,8 +1434,8 @@ changes:
14341434
14351435<!--lint disable maximum-line-length remark-lint-->
14361436
1437- * ` unwrapAlgo ` {string|Algorithm|RsaOaepParams|AesCtrParams|AesCbcParams|AeadParams}
1438- * ` unwrappedKeyAlgo ` {string|Algorithm|RsaHashedImportParams|EcKeyImportParams|HmacImportParams|KmacImportParams}
1437+ * ` unwrapAlgorithm ` {string|Algorithm|RsaOaepParams|AesCtrParams|AesCbcParams|AeadParams}
1438+ * ` unwrappedKeyAlgorithm ` {string|Algorithm|RsaHashedImportParams|EcKeyImportParams|HmacImportParams|KmacImportParams}
14391439
14401440<!--lint enable maximum-line-length remark-lint-->
14411441
@@ -1447,8 +1447,8 @@ In cryptography, "wrapping a key" refers to exporting and then encrypting the
14471447keying material. This method attempts to decrypt a wrapped
14481448key and create a {CryptoKey} instance. It is equivalent to calling
14491449[` subtle .decrypt ()` ][] first on the encrypted key data (using the ` wrappedKey` ,
1450- ` unwrapAlgo ` , and ` unwrappingKey` arguments as input) then passing the results
1451- to the [` subtle .importKey ()` ][] method using the ` unwrappedKeyAlgo ` ,
1450+ ` unwrapAlgorithm ` , and ` unwrappingKey` arguments as input) then passing the results
1451+ to the [` subtle .importKey ()` ][] method using the ` unwrappedKeyAlgorithm ` ,
14521452` extractable` , and ` keyUsages` arguments as inputs. If successful, the returned
14531453promise is resolved with a {CryptoKey} object.
14541454
@@ -1536,7 +1536,7 @@ The algorithms currently supported include:
15361536* ` ' RSA-PSS' `
15371537* ` ' RSASSA-PKCS1-v1_5' `
15381538
1539- ### ` subtle .wrapKey (format, key, wrappingKey, wrapAlgo )`
1539+ ### ` subtle .wrapKey (format, key, wrappingKey, wrapAlgorithm )`
15401540
15411541<!-- YAML
15421542added: v15.0.0
@@ -1555,18 +1555,18 @@ changes:
15551555 ` ' raw-public' ` [^modern-algos], or ` ' raw-seed' ` [^modern-algos].
15561556* ` key` {CryptoKey}
15571557* ` wrappingKey` {CryptoKey}
1558- * ` wrapAlgo ` {string|Algorithm|RsaOaepParams|AesCtrParams|AesCbcParams|AeadParams}
1558+ * ` wrapAlgorithm ` {string|Algorithm|RsaOaepParams|AesCtrParams|AesCbcParams|AeadParams}
15591559* Returns: {Promise} Fulfills with an {ArrayBuffer} upon success.
15601560
15611561<!--lint enable maximum-line-length remark-lint-->
15621562
15631563In cryptography, "wrapping a key" refers to exporting and then encrypting the
15641564keying material. This method exports the keying material into
15651565the format identified by ` format` , then encrypts it using the method and
1566- parameters specified by ` wrapAlgo ` and the keying material provided by
1566+ parameters specified by ` wrapAlgorithm ` and the keying material provided by
15671567` wrappingKey` . It is the equivalent to calling [` subtle .exportKey ()` ][] using
15681568` format` and ` key` as the arguments, then passing the result to the
1569- [` subtle .encrypt ()` ][] method using ` wrappingKey` and ` wrapAlgo ` as inputs. If
1569+ [` subtle .encrypt ()` ][] method using ` wrappingKey` and ` wrapAlgorithm ` as inputs. If
15701570successful, the returned promise will be resolved with an {ArrayBuffer}
15711571containing the encrypted key data.
15721572
@@ -2794,19 +2794,19 @@ added: v24.18.0
27942794[Web Crypto API]: https://www.w3.org/TR/WebCryptoAPI/
27952795[` SubtleCrypto .supports ()` ]: #static-method-subtlecryptosupportsoperation-algorithm-lengthoradditionalalgorithm
27962796[` subtle .decapsulateBits ()` ]: #subtledecapsulatebitsdecapsulationalgorithm-decapsulationkey-ciphertext
2797- [` subtle .decapsulateKey ()` ]: #subtledecapsulatekeydecapsulationalgorithm-decapsulationkey-ciphertext-sharedkeyalgorithm-extractable-usages
2797+ [` subtle .decapsulateKey ()` ]: #subtledecapsulatekeydecapsulationalgorithm-decapsulationkey-ciphertext-sharedkeyalgorithm-extractable-keyusages
27982798[` subtle .decrypt ()` ]: #subtledecryptalgorithm-key-data
27992799[` subtle .deriveBits ()` ]: #subtlederivebitsalgorithm-basekey-length
2800- [` subtle .deriveKey ()` ]: #subtlederivekeyalgorithm-basekey-derivedkeyalgorithm -extractable-keyusages
2800+ [` subtle .deriveKey ()` ]: #subtlederivekeyalgorithm-basekey-derivedkeytype -extractable-keyusages
28012801[` subtle .digest ()` ]: #subtledigestalgorithm-data
28022802[` subtle .encapsulateBits ()` ]: #subtleencapsulatebitsencapsulationalgorithm-encapsulationkey
2803- [` subtle .encapsulateKey ()` ]: #subtleencapsulatekeyencapsulationalgorithm-encapsulationkey-sharedkeyalgorithm-extractable-usages
2803+ [` subtle .encapsulateKey ()` ]: #subtleencapsulatekeyencapsulationalgorithm-encapsulationkey-sharedkeyalgorithm-extractable-keyusages
28042804[` subtle .encrypt ()` ]: #subtleencryptalgorithm-key-data
28052805[` subtle .exportKey ()` ]: #subtleexportkeyformat-key
28062806[` subtle .generateKey ()` ]: #subtlegeneratekeyalgorithm-extractable-keyusages
28072807[` subtle .getPublicKey ()` ]: #subtlegetpublickeykey-keyusages
28082808[` subtle .importKey ()` ]: #subtleimportkeyformat-keydata-algorithm-extractable-keyusages
28092809[` subtle .sign ()` ]: #subtlesignalgorithm-key-data
2810- [` subtle .unwrapKey ()` ]: #subtleunwrapkeyformat-wrappedkey-unwrappingkey-unwrapalgo-unwrappedkeyalgo -extractable-keyusages
2810+ [` subtle .unwrapKey ()` ]: #subtleunwrapkeyformat-wrappedkey-unwrappingkey-unwrapalgorithm-unwrappedkeyalgorithm -extractable-keyusages
28112811[` subtle .verify ()` ]: #subtleverifyalgorithm-key-signature-data
2812- [` subtle .wrapKey ()` ]: #subtlewrapkeyformat-key-wrappingkey-wrapalgo
2812+ [` subtle .wrapKey ()` ]: #subtlewrapkeyformat-key-wrappingkey-wrapalgorithm
0 commit comments