Skip to content

Commit 77c7d28

Browse files
committed
fix doc for curve_parameters_encoding
named_curve was listed twice, it should be either it or explicit
1 parent fc340bf commit 77c7d28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ecdsa/keys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ def to_pem(
629629
implementations, it is as big as "uncompressed".
630630
:param str curve_parameters_encoding: the encoding for curve parameters
631631
to use, by default tries to use ``named_curve`` encoding,
632-
if that is not possible, falls back to ``named_curve`` encoding.
632+
if that is not possible, falls back to ``explicit`` encoding.
633633
634634
:return: portable encoding of the public key
635635
:rtype: bytes
@@ -658,7 +658,7 @@ def to_der(
658658
implementations, it is as big as "uncompressed".
659659
:param str curve_parameters_encoding: the encoding for curve parameters
660660
to use, by default tries to use ``named_curve`` encoding,
661-
if that is not possible, falls back to ``named_curve`` encoding.
661+
if that is not possible, falls back to ``explicit`` encoding.
662662
663663
:return: DER encoding of the public key
664664
:rtype: bytes

0 commit comments

Comments
 (0)