Skip to content

Commit

Permalink
docs: Minor formatting (#411)
Browse files Browse the repository at this point in the history
* docs: Minor formatting

PiperOrigin-RevId: 553100418

Source-Link: googleapis/googleapis@09b5fc6

Source-Link: googleapis/googleapis-gen@8441eb3
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiODQ0MWViM2VjMmFjYjQ2NGIzNDZmYTczNzE5MDYzZjdiMmM4MmFkZiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Aug 2, 2023
1 parent f828985 commit 26540fa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions packages/google-cloud-kms/google/cloud/kms_v1/types/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,40 +553,40 @@ class CryptoKeyVersionAlgorithm(proto.Enum):
[CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose]
[ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
Algorithms beginning with "RSA_SIGN\_" are usable with
Algorithms beginning with ``RSA_SIGN_`` are usable with
[CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose]
[ASYMMETRIC_SIGN][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_SIGN].
The fields in the name after "RSA_SIGN\_" correspond to the following
parameters: padding algorithm, modulus bit length, and digest
algorithm.
The fields in the name after ``RSA_SIGN_`` correspond to the
following parameters: padding algorithm, modulus bit length, and
digest algorithm.
For PSS, the salt length used is equal to the length of digest
algorithm. For example,
[RSA_SIGN_PSS_2048_SHA256][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256]
will use PSS with a salt length of 256 bits or 32 bytes.
Algorithms beginning with "RSA_DECRYPT\_" are usable with
Algorithms beginning with ``RSA_DECRYPT_`` are usable with
[CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose]
[ASYMMETRIC_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_DECRYPT].
The fields in the name after "RSA_DECRYPT\_" correspond to the
The fields in the name after ``RSA_DECRYPT_`` correspond to the
following parameters: padding algorithm, modulus bit length, and
digest algorithm.
Algorithms beginning with "EC_SIGN\_" are usable with
Algorithms beginning with ``EC_SIGN_`` are usable with
[CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose]
[ASYMMETRIC_SIGN][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_SIGN].
The fields in the name after "EC_SIGN\_" correspond to the following
parameters: elliptic curve, digest algorithm.
The fields in the name after ``EC_SIGN_`` correspond to the
following parameters: elliptic curve, digest algorithm.
Algorithms beginning with "HMAC\_" are usable with
Algorithms beginning with ``HMAC_`` are usable with
[CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose]
[MAC][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.MAC].
The suffix following "HMAC\_" corresponds to the hash algorithm being
used (eg. SHA256).
The suffix following ``HMAC_`` corresponds to the hash algorithm
being used (eg. SHA256).
For more information, see [Key purposes and algorithms]
(https://cloud.google.com/kms/docs/algorithms).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-kms",
"version": "2.19.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down

0 comments on commit 26540fa

Please sign in to comment.