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

Commit

Permalink
feat: add ECDSA secp256k1 to the list of supported algorithms (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] authored Jun 14, 2021
1 parent 172b506 commit 65a453f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
1 change: 0 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
branch = True

[report]
fail_under = 100
show_missing = True
omit =
google/cloud/kms/__init__.py
Expand Down
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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

0 comments on commit 65a453f

Please sign in to comment.