Skip to content

Commit 641d0e5

Browse files
committed
VerifyingKey: explicit use the same point encoding for generator as pkey
Provide control over how the generator point is encoded when explitic curve parameters are used
1 parent 77c7d28 commit 641d0e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ecdsa/keys.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ def to_der(
674674
return der.encode_sequence(
675675
der.encode_sequence(
676676
encoded_oid_ecPublicKey,
677-
self.curve.to_der(curve_parameters_encoding),
677+
self.curve.to_der(curve_parameters_encoding, point_encoding),
678678
),
679679
# 0 is the number of unused bits in the
680680
# bit string

0 commit comments

Comments
 (0)