tencentcloud-sdk-kms 1.0.229 → 1.0.230
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190118/client.rb +1 -1
- data/lib/v20190118/models.rb +25 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: edf1e29f05c4c3618f2bb542fed5a6382f12df6a
|
4
|
+
data.tar.gz: 7c4a7d135134171f1b78e293f9ef2e9a49d9d301
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc16c3f139837eb37b2322ed28ecfabf596a679c963d8cd83feaa07d00b7a05409e00a6164b34f4f82b221a5821ab55f32edb924d9715783d308da73db13fc60
|
7
|
+
data.tar.gz: 10cda3d8c8e2802130ab188eec6b29948f9a9ff648d3c1b4f4215a7d56c1ff6133efc0578d4577d87d435836fd8b177895051459c930ca7cf2cc06880fc21e86
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.230
|
data/lib/v20190118/client.rb
CHANGED
@@ -869,7 +869,7 @@ module TencentCloud
|
|
869
869
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
870
870
|
end
|
871
871
|
|
872
|
-
#
|
872
|
+
# 获取可以提供KMS服务的地域列表
|
873
873
|
|
874
874
|
# @param request: Request instance for GetRegions.
|
875
875
|
# @type request: :class:`Tencentcloud::kms::V20190118::GetRegionsRequest`
|
data/lib/v20190118/models.rb
CHANGED
@@ -275,7 +275,7 @@ module TencentCloud
|
|
275
275
|
# @type Alias: String
|
276
276
|
# @param Description: CMK 的描述,最大1024字节
|
277
277
|
# @type Description: String
|
278
|
-
# @param KeyUsage: 指定key的用途,默认为 "ENCRYPT_DECRYPT" 表示创建对称加解密密钥,其它支持用途 “ASYMMETRIC_DECRYPT_RSA_2048” 表示创建用于加解密的RSA2048非对称密钥,“ASYMMETRIC_DECRYPT_SM2” 表示创建用于加解密的SM2
|
278
|
+
# @param KeyUsage: 指定key的用途,默认为 "ENCRYPT_DECRYPT" 表示创建对称加解密密钥,其它支持用途 “ASYMMETRIC_DECRYPT_RSA_2048” 表示创建用于加解密的RSA2048非对称密钥,“ASYMMETRIC_DECRYPT_SM2” 表示创建用于加解密的SM2非对称密钥,“ASYMMETRIC_SIGN_VERIFY_SM2” 表示创建用于签名验签的SM2非对称密钥,“ASYMMETRIC_SIGN_VERIFY_ECC” 表示创建用于签名验签的ECC非对称密钥,“ASYMMETRIC_SIGN_VERIFY_RSA_2048” 表示创建用于签名验签的RSA_2048非对称密钥,“ASYMMETRIC_SIGN_VERIFY_ECDSA384”表示创建用于签名验签的 ECDSA384 非对称秘钥。完整的秘钥用途与算法支持列表可通过 ListAlgorithms 接口获取。
|
279
279
|
# @type KeyUsage: String
|
280
280
|
# @param Type: 指定key类型,默认为1,1表示默认类型,由KMS创建CMK密钥,2 表示EXTERNAL 类型,该类型需要用户导入密钥材料,参考 GetParametersForImport 和 ImportKeyMaterial 接口
|
281
281
|
# @type Type: Integer
|
@@ -438,17 +438,25 @@ module TencentCloud
|
|
438
438
|
# @type CiphertextBlob: String
|
439
439
|
# @param EncryptionContext: key/value对的json字符串,如果Encrypt指定了该参数,则在调用Decrypt API时需要提供同样的参数,最大支持1024字符
|
440
440
|
# @type EncryptionContext: String
|
441
|
+
# @param EncryptionPublicKey: PEM 格式公钥字符串,支持 RSA2048 和 SM2 公钥,用于对返回数据中的 Plaintext 值进行加密。若为空,则不对 Plaintext 值加密。
|
442
|
+
# @type EncryptionPublicKey: String
|
443
|
+
# @param EncryptionAlgorithm: 非对称加密算法,配合 EncryptionPublicKey 对返回数据进行加密。目前支持:SM2(C1C3C2),RSAES_PKCS1_V1_5,RSAES_OAEP_SHA_1,RSAES_OAEP_SHA_256。若为空,则默认为 SM2。
|
444
|
+
# @type EncryptionAlgorithm: String
|
441
445
|
|
442
|
-
attr_accessor :CiphertextBlob, :EncryptionContext
|
446
|
+
attr_accessor :CiphertextBlob, :EncryptionContext, :EncryptionPublicKey, :EncryptionAlgorithm
|
443
447
|
|
444
|
-
def initialize(ciphertextblob=nil, encryptioncontext=nil)
|
448
|
+
def initialize(ciphertextblob=nil, encryptioncontext=nil, encryptionpublickey=nil, encryptionalgorithm=nil)
|
445
449
|
@CiphertextBlob = ciphertextblob
|
446
450
|
@EncryptionContext = encryptioncontext
|
451
|
+
@EncryptionPublicKey = encryptionpublickey
|
452
|
+
@EncryptionAlgorithm = encryptionalgorithm
|
447
453
|
end
|
448
454
|
|
449
455
|
def deserialize(params)
|
450
456
|
@CiphertextBlob = params['CiphertextBlob']
|
451
457
|
@EncryptionContext = params['EncryptionContext']
|
458
|
+
@EncryptionPublicKey = params['EncryptionPublicKey']
|
459
|
+
@EncryptionAlgorithm = params['EncryptionAlgorithm']
|
452
460
|
end
|
453
461
|
end
|
454
462
|
|
@@ -456,7 +464,8 @@ module TencentCloud
|
|
456
464
|
class DecryptResponse < TencentCloud::Common::AbstractModel
|
457
465
|
# @param KeyId: CMK的全局唯一标识
|
458
466
|
# @type KeyId: String
|
459
|
-
# @param Plaintext:
|
467
|
+
# @param Plaintext: 若调用时未提供 EncryptionPublicKey,该字段值为 Base64 编码的明文,需进行 Base64 解码以获取明文。
|
468
|
+
# 若调用时提供了 EncryptionPublicKey,则该字段值为使用 EncryptionPublicKey 公钥进行非对称加密后的 Base64 编码的密文。需在 Base64 解码后,使用用户上传的公钥对应的私钥进行进一步解密,以获取明文。
|
460
469
|
# @type Plaintext: String
|
461
470
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
462
471
|
# @type RequestId: String
|
@@ -1287,14 +1296,20 @@ module TencentCloud
|
|
1287
1296
|
# @type NumberOfBytes: Integer
|
1288
1297
|
# @param EncryptionContext: key/value对的json字符串,如果使用该字段,则返回的DataKey在解密时需要填入相同的字符串
|
1289
1298
|
# @type EncryptionContext: String
|
1299
|
+
# @param EncryptionPublicKey: PEM 格式公钥字符串,支持 RSA2048 和 SM2 公钥,用于对返回数据中的 Plaintext 值进行加密。若为空,则不对 Plaintext 值加密。
|
1300
|
+
# @type EncryptionPublicKey: String
|
1301
|
+
# @param EncryptionAlgorithm: 非对称加密算法,配合 EncryptionPublicKey 对返回数据进行加密。目前支持:SM2(C1C3C2),RSAES_PKCS1_V1_5,RSAES_OAEP_SHA_1,RSAES_OAEP_SHA_256。若为空,则默认为 SM2。
|
1302
|
+
# @type EncryptionAlgorithm: String
|
1290
1303
|
|
1291
|
-
attr_accessor :KeyId, :KeySpec, :NumberOfBytes, :EncryptionContext
|
1304
|
+
attr_accessor :KeyId, :KeySpec, :NumberOfBytes, :EncryptionContext, :EncryptionPublicKey, :EncryptionAlgorithm
|
1292
1305
|
|
1293
|
-
def initialize(keyid=nil, keyspec=nil, numberofbytes=nil, encryptioncontext=nil)
|
1306
|
+
def initialize(keyid=nil, keyspec=nil, numberofbytes=nil, encryptioncontext=nil, encryptionpublickey=nil, encryptionalgorithm=nil)
|
1294
1307
|
@KeyId = keyid
|
1295
1308
|
@KeySpec = keyspec
|
1296
1309
|
@NumberOfBytes = numberofbytes
|
1297
1310
|
@EncryptionContext = encryptioncontext
|
1311
|
+
@EncryptionPublicKey = encryptionpublickey
|
1312
|
+
@EncryptionAlgorithm = encryptionalgorithm
|
1298
1313
|
end
|
1299
1314
|
|
1300
1315
|
def deserialize(params)
|
@@ -1302,6 +1317,8 @@ module TencentCloud
|
|
1302
1317
|
@KeySpec = params['KeySpec']
|
1303
1318
|
@NumberOfBytes = params['NumberOfBytes']
|
1304
1319
|
@EncryptionContext = params['EncryptionContext']
|
1320
|
+
@EncryptionPublicKey = params['EncryptionPublicKey']
|
1321
|
+
@EncryptionAlgorithm = params['EncryptionAlgorithm']
|
1305
1322
|
end
|
1306
1323
|
end
|
1307
1324
|
|
@@ -1309,7 +1326,8 @@ module TencentCloud
|
|
1309
1326
|
class GenerateDataKeyResponse < TencentCloud::Common::AbstractModel
|
1310
1327
|
# @param KeyId: CMK的全局唯一标识
|
1311
1328
|
# @type KeyId: String
|
1312
|
-
# @param Plaintext:
|
1329
|
+
# @param Plaintext: 若调用时未提供 EncryptionPublicKey,该字段值为生成的数据密钥 DataKey 的 Base64 编码的明文,需进行 Base64 解码以获取 DataKey 明文。
|
1330
|
+
# 若调用时提供了 EncryptionPublicKey,则该字段值为使用 EncryptionPublicKey 公钥进行非对称加密后的 Base64 编码的密文。需在 Base64 解码后,使用用户上传的公钥对应的私钥进行进一步解密,以获取 DataKey 明文。
|
1313
1331
|
# @type Plaintext: String
|
1314
1332
|
# @param CiphertextBlob: 数据密钥DataKey加密后的密文,用户需要自行保存该密文,KMS不托管用户的数据密钥。可以通过Decrypt接口从CiphertextBlob中获取数据密钥DataKey明文
|
1315
1333
|
# @type CiphertextBlob: String
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-kms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.230
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|