From 36eb798bf1fb9d4d056e020a90b9e08399ed01eb Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Sat, 14 Jan 2023 10:54:14 -0700 Subject: [PATCH] elliptic-curve: rename `SecretKey::to_sec1_pem` Was formerly `SecretKey::to_pem` which is ambiguous as to what PEM serialization is used. PKCS#8 is also possible (and preferred). --- elliptic-curve/src/secret_key.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elliptic-curve/src/secret_key.rs b/elliptic-curve/src/secret_key.rs index 12d427a20..4ee727e8d 100644 --- a/elliptic-curve/src/secret_key.rs +++ b/elliptic-curve/src/secret_key.rs @@ -235,7 +235,7 @@ where /// /// Pass `Default::default()` to use the OS's native line endings. #[cfg(feature = "pem")] - pub fn to_pem(&self, line_ending: pem::LineEnding) -> Result> + pub fn to_sec1_pem(&self, line_ending: pem::LineEnding) -> Result> where C: CurveArithmetic, AffinePoint: FromEncodedPoint + ToEncodedPoint,