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
2 people authored and rsamborski committed Nov 8, 2022
1 parent 71ae2bf commit 8dd964d
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 8dd964d

Please sign in to comment.