Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update verify_asymmetric_ec.py
  • Loading branch information
pedroysb authored Jan 20, 2022
commit db3ca41733e836c4d938c79b267a721bf43bbec1
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