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,