Skip to content

Commit 1bc27a7

Browse files
author
Dórian Langbeck
committed
Change ECDSA example to use the original "secp256r1" curve name
1 parent fa89aca commit 1bc27a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ ECDSA
148148
# Generate an EC keypair in this session from a named curve
149149
ecparams = session.create_domain_parameters(
150150
pkcs11.KeyType.EC, {
151-
pkcs11.Attribute.EC_PARAMS: pkcs11.util.ec.encode_named_curve_parameters('prime256v1'),
151+
pkcs11.Attribute.EC_PARAMS: pkcs11.util.ec.encode_named_curve_parameters('secp256r1'),
152152
}, local=True)
153153
pub, priv = ecparams.generate_keypair()
154154

0 commit comments

Comments
 (0)