Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typos #1340

Merged
merged 4 commits into from Feb 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkcs1/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Path>, line_ending: LineEnding) -> Result<()> {
let doc = self.to_pkcs1_der()?;
Expand All @@ -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<Path>, line_ending: LineEnding) -> Result<()> {
let doc = self.to_pkcs1_der()?;
Expand Down
2 changes: 1 addition & 1 deletion pkcs8/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Path>, line_ending: LineEnding) -> Result<()> {
let doc = self.to_pkcs8_der()?;
Expand Down
2 changes: 1 addition & 1 deletion sec1/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Path>, line_ending: LineEnding) -> Result<()> {
let doc = self.to_sec1_der()?;
Expand Down
2 changes: 1 addition & 1 deletion spki/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading