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

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 <[email protected]>
  • Loading branch information
pedroysb and parthea authored Jan 21, 2022
1 parent 4442c5b commit 3817d73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/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 3817d73

Please sign in to comment.