@@ -441,7 +441,7 @@ added: v15.0.0
441
441
442
442
<!-- lint disable maximum-line-length remark-lint-->
443
443
444
- * Type: {AesKeyGenParams|RsaHashedKeyGenParams|EcKeyGenParams|HmacKeyGenParams }
444
+ * Type: {KeyAlgorithm|RsaHashedKeyAlgorithm|EcKeyAlgorithm|AesKeyAlgorithm|HmacKeyAlgorithm }
445
445
446
446
<!-- lint enable maximum-line-length remark-lint-->
447
447
@@ -635,7 +635,7 @@ changes:
635
635
636
636
* ` algorithm ` : {EcdhKeyDeriveParams|HkdfParams|Pbkdf2Params}
637
637
* ` baseKey ` : {CryptoKey}
638
- * ` derivedKeyAlgorithm ` : {string|AlgorithmIdentifier |HmacImportParams|AesDerivedKeyParams}
638
+ * ` derivedKeyAlgorithm ` : {string|Algorithm |HmacImportParams|AesDerivedKeyParams}
639
639
* ` extractable ` : {boolean}
640
640
* ` keyUsages ` : {string\[ ] } See [ Key usages] [ ] .
641
641
* Returns: {Promise} Fulfills with a {CryptoKey} upon success.
@@ -665,7 +665,7 @@ The algorithms currently supported include:
665
665
added: v15.0.0
666
666
-->
667
667
668
- * ` algorithm ` : {string|AlgorithmIdentifier }
668
+ * ` algorithm ` : {string|Algorithm }
669
669
* ` data ` : {ArrayBuffer|TypedArray|DataView|Buffer}
670
670
* Returns: {Promise} Fulfills with an {ArrayBuffer} upon success.
671
671
@@ -761,7 +761,7 @@ added: v15.0.0
761
761
762
762
<!-- lint disable maximum-line-length remark-lint-->
763
763
764
- * ` algorithm ` : {string|AlgorithmIdentifier |RsaHashedKeyGenParams|EcKeyGenParams|HmacKeyGenParams|AesKeyGenParams}
764
+ * ` algorithm ` : {string|Algorithm |RsaHashedKeyGenParams|EcKeyGenParams|HmacKeyGenParams|AesKeyGenParams}
765
765
766
766
<!-- lint enable maximum-line-length remark-lint-->
767
767
@@ -815,7 +815,7 @@ changes:
815
815
816
816
<!-- lint disable maximum-line-length remark-lint-->
817
817
818
- * ` algorithm ` : {string|AlgorithmIdentifier |RsaHashedImportParams|EcKeyImportParams|HmacImportParams}
818
+ * ` algorithm ` : {string|Algorithm |RsaHashedImportParams|EcKeyImportParams|HmacImportParams}
819
819
820
820
<!-- lint enable maximum-line-length remark-lint-->
821
821
@@ -865,7 +865,7 @@ changes:
865
865
866
866
<!-- lint disable maximum-line-length remark-lint-->
867
867
868
- * ` algorithm ` : {string|AlgorithmIdentifier |RsaPssParams|EcdsaParams|Ed448Params}
868
+ * ` algorithm ` : {string|Algorithm |RsaPssParams|EcdsaParams|Ed448Params}
869
869
* ` key ` : {CryptoKey}
870
870
* ` data ` : {ArrayBuffer|TypedArray|DataView|Buffer}
871
871
* Returns: {Promise} Fulfills with an {ArrayBuffer} upon success.
@@ -898,8 +898,8 @@ added: v15.0.0
898
898
899
899
<!-- lint disable maximum-line-length remark-lint-->
900
900
901
- * ` unwrapAlgo ` : {string|AlgorithmIdentifier |RsaOaepParams|AesCtrParams|AesCbcParams|AesGcmParams}
902
- * ` unwrappedKeyAlgo ` : {string|AlgorithmIdentifier |RsaHashedImportParams|EcKeyImportParams|HmacImportParams}
901
+ * ` unwrapAlgo ` : {string|Algorithm |RsaOaepParams|AesCtrParams|AesCbcParams|AesGcmParams}
902
+ * ` unwrappedKeyAlgo ` : {string|Algorithm |RsaHashedImportParams|EcKeyImportParams|HmacImportParams}
903
903
904
904
<!-- lint enable maximum-line-length remark-lint-->
905
905
@@ -955,7 +955,7 @@ changes:
955
955
956
956
<!-- lint disable maximum-line-length remark-lint-->
957
957
958
- * ` algorithm ` : {string|AlgorithmIdentifier |RsaPssParams|EcdsaParams|Ed448Params}
958
+ * ` algorithm ` : {string|Algorithm |RsaPssParams|EcdsaParams|Ed448Params}
959
959
* ` key ` : {CryptoKey}
960
960
* ` signature ` : {ArrayBuffer|TypedArray|DataView|Buffer}
961
961
* ` data ` : {ArrayBuffer|TypedArray|DataView|Buffer}
@@ -988,7 +988,7 @@ added: v15.0.0
988
988
* ` format ` : {string} Must be one of ` 'raw' ` , ` 'pkcs8' ` , ` 'spki' ` , or ` 'jwk' ` .
989
989
* ` key ` : {CryptoKey}
990
990
* ` wrappingKey ` : {CryptoKey}
991
- * ` wrapAlgo ` : {string|AlgorithmIdentifier |RsaOaepParams|AesCtrParams|AesCbcParams|AesGcmParams}
991
+ * ` wrapAlgo ` : {string|Algorithm |RsaOaepParams|AesCtrParams|AesCbcParams|AesGcmParams}
992
992
* Returns: {Promise} Fulfills with an {ArrayBuffer} upon success.
993
993
994
994
<!-- lint enable maximum-line-length remark-lint-->
@@ -1017,13 +1017,13 @@ The algorithm parameter objects define the methods and parameters used by
1017
1017
the various {SubtleCrypto} methods. While described here as "classes", they
1018
1018
are simple JavaScript dictionary objects.
1019
1019
1020
- ### Class: ` AlgorithmIdentifier `
1020
+ ### Class: ` Algorithm `
1021
1021
1022
1022
<!-- YAML
1023
1023
added: v15.0.0
1024
1024
-->
1025
1025
1026
- #### ` algorithmIdentifier .name`
1026
+ #### ` Algorithm .name`
1027
1027
1028
1028
<!-- YAML
1029
1029
added: v15.0.0
@@ -1171,6 +1171,30 @@ added: v15.0.0
1171
1171
This values must be one of ` 32 ` , ` 64 ` , ` 96 ` , ` 104 ` , ` 112 ` , ` 120 ` , or
1172
1172
` 128 ` . ** Default:** ` 128 ` .
1173
1173
1174
+ ### Class: ` AesKeyAlgorithm `
1175
+
1176
+ <!-- YAML
1177
+ added: v15.0.0
1178
+ -->
1179
+
1180
+ #### ` aesKeyAlgorithm.length `
1181
+
1182
+ <!-- YAML
1183
+ added: v15.0.0
1184
+ -->
1185
+
1186
+ * Type: {number}
1187
+
1188
+ The length of the AES key in bits.
1189
+
1190
+ #### ` aesKeyAlgorithm.name `
1191
+
1192
+ <!-- YAML
1193
+ added: v15.0.0
1194
+ -->
1195
+
1196
+ * Type: {string}
1197
+
1174
1198
### Class: ` AesKeyGenParams `
1175
1199
1176
1200
<!-- YAML
@@ -1236,7 +1260,7 @@ added: v15.0.0
1236
1260
added: v15.0.0
1237
1261
-->
1238
1262
1239
- * Type: {string|Object }
1263
+ * Type: {string|Algorithm }
1240
1264
1241
1265
If represented as a {string}, the value must be one of:
1242
1266
@@ -1245,8 +1269,8 @@ If represented as a {string}, the value must be one of:
1245
1269
* ` 'SHA-384' `
1246
1270
* ` 'SHA-512' `
1247
1271
1248
- If represented as an {Object }, the object must have a ` name ` property
1249
- whose value is one of the above listed values.
1272
+ If represented as an {Algorithm }, the object's ` name ` property
1273
+ must be one of the above listed values.
1250
1274
1251
1275
#### ` ecdsaParams.name `
1252
1276
@@ -1256,6 +1280,28 @@ added: v15.0.0
1256
1280
1257
1281
* Type: {string} Must be ` 'ECDSA' ` .
1258
1282
1283
+ ### Class: ` EcKeyAlgorithm `
1284
+
1285
+ <!-- YAML
1286
+ added: v15.0.0
1287
+ -->
1288
+
1289
+ #### ` ecKeyAlgorithm.name `
1290
+
1291
+ <!-- YAML
1292
+ added: v15.0.0
1293
+ -->
1294
+
1295
+ * Type: {string}
1296
+
1297
+ #### ` ecKeyAlgorithm.namedCurve `
1298
+
1299
+ <!-- YAML
1300
+ added: v15.0.0
1301
+ -->
1302
+
1303
+ * Type: {string}
1304
+
1259
1305
### Class: ` EcKeyGenParams `
1260
1306
1261
1307
<!-- YAML
@@ -1343,7 +1389,7 @@ added: v15.0.0
1343
1389
added: v15.0.0
1344
1390
-->
1345
1391
1346
- * Type: {string|Object }
1392
+ * Type: {string|Algorithm }
1347
1393
1348
1394
If represented as a {string}, the value must be one of:
1349
1395
@@ -1352,8 +1398,8 @@ If represented as a {string}, the value must be one of:
1352
1398
* ` 'SHA-384' `
1353
1399
* ` 'SHA-512' `
1354
1400
1355
- If represented as an {Object }, the object must have a ` name ` property
1356
- whose value is one of the above listed values.
1401
+ If represented as an {Algorithm }, the object's ` name ` property
1402
+ must be one of the above listed values.
1357
1403
1358
1404
#### ` hkdfParams.info `
1359
1405
@@ -1399,7 +1445,7 @@ added: v15.0.0
1399
1445
added: v15.0.0
1400
1446
-->
1401
1447
1402
- * Type: {string|Object }
1448
+ * Type: {string|Algorithm }
1403
1449
1404
1450
If represented as a {string}, the value must be one of:
1405
1451
@@ -1408,8 +1454,8 @@ If represented as a {string}, the value must be one of:
1408
1454
* ` 'SHA-384' `
1409
1455
* ` 'SHA-512' `
1410
1456
1411
- If represented as an {Object }, the object must have a ` name ` property
1412
- whose value is one of the above listed values.
1457
+ If represented as an {Algorithm }, the object's ` name ` property
1458
+ must be one of the above listed values.
1413
1459
1414
1460
#### ` hmacImportParams.length `
1415
1461
@@ -1430,6 +1476,38 @@ added: v15.0.0
1430
1476
1431
1477
* Type: {string} Must be ` 'HMAC' ` .
1432
1478
1479
+ ### Class: ` HmacKeyAlgorithm `
1480
+
1481
+ <!-- YAML
1482
+ added: v15.0.0
1483
+ -->
1484
+
1485
+ #### ` hmacKeyAlgorithm.hash `
1486
+
1487
+ <!-- YAML
1488
+ added: v15.0.0
1489
+ -->
1490
+
1491
+ * Type: {Algorithm}
1492
+
1493
+ #### ` hmacKeyAlgorithm.length `
1494
+
1495
+ <!-- YAML
1496
+ added: v15.0.0
1497
+ -->
1498
+
1499
+ * Type: {number}
1500
+
1501
+ The length of the HMAC key in bits.
1502
+
1503
+ #### ` hmacKeyAlgorithm.name `
1504
+
1505
+ <!-- YAML
1506
+ added: v15.0.0
1507
+ -->
1508
+
1509
+ * Type: {string}
1510
+
1433
1511
### Class: ` HmacKeyGenParams `
1434
1512
1435
1513
<!-- YAML
@@ -1442,7 +1520,7 @@ added: v15.0.0
1442
1520
added: v15.0.0
1443
1521
-->
1444
1522
1445
- * Type: {string|Object }
1523
+ * Type: {string|Algorithm }
1446
1524
1447
1525
If represented as a {string}, the value must be one of:
1448
1526
@@ -1451,8 +1529,8 @@ If represented as a {string}, the value must be one of:
1451
1529
* ` 'SHA-384' `
1452
1530
* ` 'SHA-512' `
1453
1531
1454
- If represented as an {Object }, the object must have a ` name ` property
1455
- whose value is one of the above listed values.
1532
+ If represented as an {Algorithm }, the object's ` name ` property
1533
+ must be one of the above listed values.
1456
1534
1457
1535
#### ` hmacKeyGenParams.length `
1458
1536
@@ -1474,6 +1552,20 @@ added: v15.0.0
1474
1552
1475
1553
* Type: {string} Must be ` 'HMAC' ` .
1476
1554
1555
+ ### Class: ` KeyAlgorithm `
1556
+
1557
+ <!-- YAML
1558
+ added: v15.0.0
1559
+ -->
1560
+
1561
+ #### ` keyAlgorithm.name `
1562
+
1563
+ <!-- YAML
1564
+ added: v15.0.0
1565
+ -->
1566
+
1567
+ * Type: {string}
1568
+
1477
1569
### Class: ` Pbkdf2Params `
1478
1570
1479
1571
<!-- YAML
@@ -1486,7 +1578,7 @@ added: v15.0.0
1486
1578
added: v15.0.0
1487
1579
-->
1488
1580
1489
- * Type: {string|Object }
1581
+ * Type: {string|Algorithm }
1490
1582
1491
1583
If represented as a {string}, the value must be one of:
1492
1584
@@ -1495,8 +1587,8 @@ If represented as a {string}, the value must be one of:
1495
1587
* ` 'SHA-384' `
1496
1588
* ` 'SHA-512' `
1497
1589
1498
- If represented as an {Object }, the object must have a ` name ` property
1499
- whose value is one of the above listed values.
1590
+ If represented as an {Algorithm }, the object's ` name ` property
1591
+ must be one of the above listed values.
1500
1592
1501
1593
#### ` pbkdf2Params.iterations `
1502
1594
@@ -1538,7 +1630,7 @@ added: v15.0.0
1538
1630
added: v15.0.0
1539
1631
-->
1540
1632
1541
- * Type: {string|Object }
1633
+ * Type: {string|Algorithm }
1542
1634
1543
1635
If represented as a {string}, the value must be one of:
1544
1636
@@ -1547,8 +1639,8 @@ If represented as a {string}, the value must be one of:
1547
1639
* ` 'SHA-384' `
1548
1640
* ` 'SHA-512' `
1549
1641
1550
- If represented as an {Object }, the object must have a ` name ` property
1551
- whose value is one of the above listed values.
1642
+ If represented as an {Algorithm }, the object's ` name ` property
1643
+ must be one of the above listed values.
1552
1644
1553
1645
#### ` rsaHashedImportParams.name `
1554
1646
@@ -1559,6 +1651,48 @@ added: v15.0.0
1559
1651
* Type: {string} Must be one of ` 'RSASSA-PKCS1-v1_5' ` , ` 'RSA-PSS' ` , or
1560
1652
` 'RSA-OAEP' ` .
1561
1653
1654
+ ### Class: ` RsaHashedKeyAlgorithm `
1655
+
1656
+ <!-- YAML
1657
+ added: v15.0.0
1658
+ -->
1659
+
1660
+ #### ` rsaHashedKeyAlgorithm.hash `
1661
+
1662
+ <!-- YAML
1663
+ added: v15.0.0
1664
+ -->
1665
+
1666
+ * Type: {Algorithm}
1667
+
1668
+ #### ` rsaHashedKeyAlgorithm.modulusLength `
1669
+
1670
+ <!-- YAML
1671
+ added: v15.0.0
1672
+ -->
1673
+
1674
+ * Type: {number}
1675
+
1676
+ The length in bits of the RSA modulus.
1677
+
1678
+ #### ` rsaHashedKeyAlgorithm.name `
1679
+
1680
+ <!-- YAML
1681
+ added: v15.0.0
1682
+ -->
1683
+
1684
+ * Type: {string}
1685
+
1686
+ #### ` rsaHashedKeyAlgorithm.publicExponent `
1687
+
1688
+ <!-- YAML
1689
+ added: v15.0.0
1690
+ -->
1691
+
1692
+ * Type: {Uint8Array}
1693
+
1694
+ The RSA public exponent.
1695
+
1562
1696
### Class: ` RsaHashedKeyGenParams `
1563
1697
1564
1698
<!-- YAML
@@ -1571,7 +1705,7 @@ added: v15.0.0
1571
1705
added: v15.0.0
1572
1706
-->
1573
1707
1574
- * Type: {string|Object }
1708
+ * Type: {string|Algorithm }
1575
1709
1576
1710
If represented as a {string}, the value must be one of:
1577
1711
@@ -1580,8 +1714,8 @@ If represented as a {string}, the value must be one of:
1580
1714
* ` 'SHA-384' `
1581
1715
* ` 'SHA-512' `
1582
1716
1583
- If represented as an {Object }, the object must have a ` name ` property
1584
- whose value is one of the above listed values.
1717
+ If represented as an {Algorithm }, the object's ` name ` property
1718
+ must be one of the above listed values.
1585
1719
1586
1720
#### ` rsaHashedKeyGenParams.modulusLength `
1587
1721
0 commit comments