From 9c1de061785da5d53b5583742450d2ea3ad939b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C5=A0pa=C4=8Dek?= Date: Sun, 4 Jun 2023 09:08:55 +0200 Subject: [PATCH] Fix some doc comments --- src/keys/openssh.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/keys/openssh.rs b/src/keys/openssh.rs index 06de1bc..e3109b2 100644 --- a/src/keys/openssh.rs +++ b/src/keys/openssh.rs @@ -39,7 +39,7 @@ pub struct OpensshKeypairNopass { static PEM_TAG: &str = "OPENSSH PRIVATE KEY"; -/// Decode a private key from OpenSSH PEM format. +/// Decode a keypair from OpenSSH PEM format. /// /// Files in this format start with `-----BEGIN OPENSSH PRIVATE KEY-----`, followed by /// base64-encoded binary data (see [`decode_openssh_binary_keypair()`]). @@ -55,7 +55,7 @@ pub fn decode_openssh_pem_keypair(pem_data: &[u8], passphrase: &[u8]) -> Result< decode_openssh_binary_keypair(data.into(), passphrase) } -/// Decode a private key from OpenSSH PEM format without decryption. +/// Decode a keypair from OpenSSH PEM format without decryption. /// /// Files in this format start with `-----BEGIN OPENSSH PRIVATE KEY-----`, followed by /// base64-encoded binary data (see [`decode_openssh_binary_keypair()`]). @@ -72,10 +72,10 @@ pub fn decode_openssh_pem_keypair_nopass(pem_data: &[u8]) -> Result Result { let raw = decode_raw(data)?; @@ -84,7 +84,7 @@ pub fn decode_openssh_binary_keypair(data: Bytes, passphrase: &[u8]) -> Result