From f299a423e27f2ed28faf9b668bfa78cc0ce52ed0 Mon Sep 17 00:00:00 2001 From: shuja73 <142736621+shuja73@users.noreply.github.com> Date: Sat, 3 Feb 2024 18:43:24 +0530 Subject: [PATCH] pkcs1+pkcs8+sec1+spki: fix typos (#1340) --- pkcs1/src/traits.rs | 4 ++-- pkcs8/src/traits.rs | 2 +- sec1/src/traits.rs | 2 +- spki/src/traits.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkcs1/src/traits.rs b/pkcs1/src/traits.rs index cd3d04e21..c759b3f67 100644 --- a/pkcs1/src/traits.rs +++ b/pkcs1/src/traits.rs @@ -119,7 +119,7 @@ pub trait EncodeRsaPrivateKey { Ok(self.to_pkcs1_der()?.write_der_file(path)?) } - /// Write ASN.1 DER-encoded PKCS#1 private key to the given path. + /// Write ASN.1 PEM-encoded PKCS#1 private key to the given path. #[cfg(all(feature = "pem", feature = "std"))] fn write_pkcs1_pem_file(&self, path: impl AsRef, line_ending: LineEnding) -> Result<()> { let doc = self.to_pkcs1_der()?; @@ -146,7 +146,7 @@ pub trait EncodeRsaPublicKey { Ok(self.to_pkcs1_der()?.write_der_file(path)?) } - /// Write ASN.1 DER-encoded public key to the given path. + /// Write ASN.1 PEM-encoded public key to the given path. #[cfg(all(feature = "pem", feature = "std"))] fn write_pkcs1_pem_file(&self, path: impl AsRef, line_ending: LineEnding) -> Result<()> { let doc = self.to_pkcs1_der()?; diff --git a/pkcs8/src/traits.rs b/pkcs8/src/traits.rs index f6165f696..9cd4116d6 100644 --- a/pkcs8/src/traits.rs +++ b/pkcs8/src/traits.rs @@ -138,7 +138,7 @@ pub trait EncodePrivateKey { Ok(self.to_pkcs8_der()?.write_der_file(path)?) } - /// Write ASN.1 DER-encoded PKCS#8 private key to the given path + /// Write ASN.1 PEM-encoded PKCS#8 private key to the given path #[cfg(all(feature = "pem", feature = "std"))] fn write_pkcs8_pem_file(&self, path: impl AsRef, line_ending: LineEnding) -> Result<()> { let doc = self.to_pkcs8_der()?; diff --git a/sec1/src/traits.rs b/sec1/src/traits.rs index 304019e3c..ce72ad3b5 100644 --- a/sec1/src/traits.rs +++ b/sec1/src/traits.rs @@ -77,7 +77,7 @@ pub trait EncodeEcPrivateKey { Ok(self.to_sec1_der()?.write_der_file(path)?) } - /// Write ASN.1 DER-encoded SEC1 private key to the given path. + /// Write ASN.1 PEM-encoded SEC1 private key to the given path. #[cfg(all(feature = "pem", feature = "std"))] fn write_sec1_pem_file(&self, path: impl AsRef, line_ending: LineEnding) -> Result<()> { let doc = self.to_sec1_der()?; diff --git a/spki/src/traits.rs b/spki/src/traits.rs index 764b02a4a..f80bf69d7 100644 --- a/spki/src/traits.rs +++ b/spki/src/traits.rs @@ -86,7 +86,7 @@ pub trait EncodePublicKey { Ok(self.to_public_key_der()?.write_der_file(path)?) } - /// Write ASN.1 DER-encoded public key to the given path + /// Write ASN.1 PEM-encoded public key to the given path #[cfg(all(feature = "pem", feature = "std"))] fn write_public_key_pem_file( &self,