Skip to content

Commit bbe1eaa

Browse files
committed
[Script] Fix secp256r1 prime number
1 parent 072660f commit bbe1eaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/ec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
secp256r1 = EllipticCurve(
2727
'secp256r1',
2828
# Field characteristic.
29-
p=0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f,
29+
p=0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff,
3030
# Curve coefficients.
3131
a=0xffffffff00000001000000000000000000000000fffffffffffffffffffffffc,
3232
b=0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b,

0 commit comments

Comments
 (0)