Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

feat: add ECDSA secp256k1 to the list of supported algorithms #120

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion .coveragerc
Expand Up @@ -2,7 +2,6 @@
branch = True

[report]
fail_under = 100
show_missing = True
omit =
google/cloud/kms/__init__.py
Expand Down
Expand Up @@ -2242,7 +2242,8 @@ async def update_crypto_key_primary_version(
[CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in
[Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].

Returns an error if called on an asymmetric key.
Returns an error if called on a key whose purpose is not
[ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].


Args:
Expand Down
Expand Up @@ -2333,7 +2333,8 @@ def update_crypto_key_primary_version(
[CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in
[Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].

Returns an error if called on an asymmetric key.
Returns an error if called on a key whose purpose is not
[ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].


Args:
Expand Down
Expand Up @@ -831,7 +831,8 @@ def update_crypto_key_primary_version(
[CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in
[Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].

Returns an error if called on an asymmetric key.
Returns an error if called on a key whose purpose is not
[ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].

Returns:
Callable[[~.UpdateCryptoKeyPrimaryVersionRequest],
Expand Down
Expand Up @@ -859,7 +859,8 @@ def update_crypto_key_primary_version(
[CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in
[Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].

Returns an error if called on an asymmetric key.
Returns an error if called on a key whose purpose is not
[ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].

Returns:
Callable[[~.UpdateCryptoKeyPrimaryVersionRequest],
Expand Down
1 change: 1 addition & 0 deletions google/cloud/kms_v1/types/resources.py
Expand Up @@ -387,6 +387,7 @@ class CryptoKeyVersionAlgorithm(proto.Enum):
RSA_DECRYPT_OAEP_4096_SHA512 = 17
EC_SIGN_P256_SHA256 = 12
EC_SIGN_P384_SHA384 = 13
EC_SIGN_SECP256K1_SHA256 = 31
EXTERNAL_SYMMETRIC_ENCRYPTION = 18

class CryptoKeyVersionState(proto.Enum):
Expand Down