Skip to content

Commit

Permalink
docs(samples): fix typo in verify_asymmetric_ec.py (#227)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
pedroysb and parthea authored Jan 21, 2022
1 parent e97bd7d commit da235f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kms/snippets/verify_asymmetric_ec.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def verify_asymmetric_ec(project_id, location_id, key_ring_id, key_id, version_i
# Get the public key.
public_key = client.get_public_key(request={'name': key_version_name})

# Extract and parse the public key as a PEM-encoded RSA key.
# Extract and parse the public key as a PEM-encoded EC key.
pem = public_key.pem.encode('utf-8')
ec_key = serialization.load_pem_public_key(pem, default_backend())
hash_ = hashlib.sha256(message_bytes).digest()
Expand Down

0 comments on commit da235f4

Please sign in to comment.