Skip to content

Commit

Permalink
feat: add ECDSA secp256k1 to the list of supported algorithms (#120)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 379309757

Source-Link: googleapis/googleapis@8d1d669

Source-Link: googleapis/googleapis-gen@b2d98d7
  • Loading branch information
gcf-owl-bot[bot] authored Jun 14, 2021
1 parent 34cb2a2 commit d8c85e2
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/google-cloud-kms/.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
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 d8c85e2

Please sign in to comment.