tencentcloud-sdk-nodejs-kms 4.0.590 → 4.0.592

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -401,6 +401,23 @@ export interface ScheduleKeyDeletionResponse {
401
401
  */
402
402
  RequestId?: string;
403
403
  }
404
+ /**
405
+ * PostQuantumCryptoVerify请求参数结构体
406
+ */
407
+ export interface PostQuantumCryptoVerifyRequest {
408
+ /**
409
+ * 密钥的唯一标识
410
+ */
411
+ KeyId: string;
412
+ /**
413
+ * 签名值,通过调用KMS PostQuantumCryptoSign签名接口生成
414
+ */
415
+ SignatureValue: string;
416
+ /**
417
+ * Base64 编码的消息原文,消息原文的长度(Base64编码前的长度)不超过4096字节。
418
+ */
419
+ Message: string;
420
+ }
404
421
  /**
405
422
  * GenerateRandom返回参数结构体
406
423
  */
@@ -1258,6 +1275,36 @@ export interface DescribeWhiteBoxKeyDetailsRequest {
1258
1275
  */
1259
1276
  TagFilters?: Array<TagFilter>;
1260
1277
  }
1278
+ /**
1279
+ * PostQuantumCryptoSign请求参数结构体
1280
+ */
1281
+ export interface PostQuantumCryptoSignRequest {
1282
+ /**
1283
+ * Base64 编码的消息原文。消息原文的长度(Base64编码前的长度)不超过4096字节。
1284
+ */
1285
+ Message: string;
1286
+ /**
1287
+ * 密钥的唯一标识
1288
+ */
1289
+ KeyId: string;
1290
+ }
1291
+ /**
1292
+ * PostQuantumCryptoDecrypt请求参数结构体
1293
+ */
1294
+ export interface PostQuantumCryptoDecryptRequest {
1295
+ /**
1296
+ * 待解密的密文数据
1297
+ */
1298
+ CiphertextBlob: string;
1299
+ /**
1300
+ * PEM 格式公钥字符串,支持 RSA2048 和 SM2 公钥,用于对返回数据中的 Plaintext 值进行加密。若为空,则不对 Plaintext 值加密。
1301
+ */
1302
+ EncryptionPublicKey?: string;
1303
+ /**
1304
+ * 非对称加密算法,配合 EncryptionPublicKey 对返回数据进行加密。目前支持:SM2(以 C1C3C2 格式返回密文),SM2_C1C3C2_ASN1 (以 C1C3C2 ASN1 格式返回密文),RSAES_PKCS1_V1_5,RSAES_OAEP_SHA_1,RSAES_OAEP_SHA_256。若为空,则默认为 SM2。
1305
+ */
1306
+ EncryptionAlgorithm?: string;
1307
+ }
1261
1308
  /**
1262
1309
  * AsymmetricRsaDecrypt返回参数结构体
1263
1310
  */
@@ -1397,6 +1444,23 @@ export interface DescribeWhiteBoxDeviceFingerprintsRequest {
1397
1444
  * GetRegions请求参数结构体
1398
1445
  */
1399
1446
  export declare type GetRegionsRequest = null;
1447
+ /**
1448
+ * PostQuantumCryptoEncrypt返回参数结构体
1449
+ */
1450
+ export interface PostQuantumCryptoEncryptResponse {
1451
+ /**
1452
+ * 加密后的密文,base64编码。注意:本字段中打包了密文和密钥的相关信息,不是对明文的直接加密结果,只有将该字段作为PostQuantumCryptoDecrypt接口的输入参数,才可以解密出原文。
1453
+ */
1454
+ CiphertextBlob?: string;
1455
+ /**
1456
+ * 加密使用的CMK的全局唯一标识
1457
+ */
1458
+ KeyId?: string;
1459
+ /**
1460
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1461
+ */
1462
+ RequestId?: string;
1463
+ }
1400
1464
  /**
1401
1465
  * EncryptByWhiteBox请求参数结构体
1402
1466
  */
@@ -1436,6 +1500,19 @@ export interface ScheduleKeyDeletionRequest {
1436
1500
  */
1437
1501
  PendingWindowInDays: number;
1438
1502
  }
1503
+ /**
1504
+ * PostQuantumCryptoEncrypt请求参数结构体
1505
+ */
1506
+ export interface PostQuantumCryptoEncryptRequest {
1507
+ /**
1508
+ * 调用CreateKey生成的CMK全局唯一标识符
1509
+ */
1510
+ KeyId: string;
1511
+ /**
1512
+ * 被加密的明文数据,该字段必须使用base64编码,原文最大长度支持4K
1513
+ */
1514
+ PlainText: string;
1515
+ }
1439
1516
  /**
1440
1517
  * DisableKey请求参数结构体
1441
1518
  */
@@ -1505,6 +1582,19 @@ export interface TagFilter {
1505
1582
  */
1506
1583
  TagValue?: Array<string>;
1507
1584
  }
1585
+ /**
1586
+ * PostQuantumCryptoSign返回参数结构体
1587
+ */
1588
+ export interface PostQuantumCryptoSignResponse {
1589
+ /**
1590
+ * 签名值,Base64编码。可使用 PostQuantumCryptoVerify接口对签名值进行验证。
1591
+ */
1592
+ Signature?: string;
1593
+ /**
1594
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1595
+ */
1596
+ RequestId?: string;
1597
+ }
1508
1598
  /**
1509
1599
  * SignByAsymmetricKey返回参数结构体
1510
1600
  */
@@ -1518,6 +1608,19 @@ export interface SignByAsymmetricKeyResponse {
1518
1608
  */
1519
1609
  RequestId?: string;
1520
1610
  }
1611
+ /**
1612
+ * PostQuantumCryptoVerify返回参数结构体
1613
+ */
1614
+ export interface PostQuantumCryptoVerifyResponse {
1615
+ /**
1616
+ * 签名是否有效。true:签名有效,false:签名无效。
1617
+ */
1618
+ SignatureValid?: boolean;
1619
+ /**
1620
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1621
+ */
1622
+ RequestId?: string;
1623
+ }
1521
1624
  /**
1522
1625
  * DescribeWhiteBoxDecryptKey返回参数结构体
1523
1626
  */
@@ -1544,6 +1647,24 @@ export interface DescribeWhiteBoxDeviceFingerprintsResponse {
1544
1647
  */
1545
1648
  RequestId?: string;
1546
1649
  }
1650
+ /**
1651
+ * PostQuantumCryptoDecrypt返回参数结构体
1652
+ */
1653
+ export interface PostQuantumCryptoDecryptResponse {
1654
+ /**
1655
+ * CMK的全局唯一标识
1656
+ */
1657
+ KeyId?: string;
1658
+ /**
1659
+ * 若调用时未提供 EncryptionPublicKey,该字段值为 Base64 编码的明文,需进行 Base64 解码以获取明文。
1660
+ 若调用时提供了 EncryptionPublicKey,则该字段值为使用 EncryptionPublicKey 公钥进行非对称加密后的 Base64 编码的密文。需在 Base64 解码后,使用用户上传的公钥对应的私钥进行进一步解密,以获取明文。
1661
+ */
1662
+ PlainText?: string;
1663
+ /**
1664
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1665
+ */
1666
+ RequestId?: string;
1667
+ }
1547
1668
  /**
1548
1669
  * UpdateKeyDescription请求参数结构体
1549
1670
  */