finish off ecdsa

This commit is contained in:
nora 2024-08-26 19:18:45 +02:00
parent 06c1f31dca
commit d5794d3ef0
12 changed files with 582 additions and 542 deletions

View file

@ -19,6 +19,12 @@ pub enum PublicKey {
},
}
#[derive(Debug, Clone, PartialEq)]
pub struct PublicKeyWithComment {
pub key: PublicKey,
pub comment: String,
}
impl PublicKey {
/// Parses an SSH public key from its wire encoding as specified in
/// RFC4253, RFC5656, and RFC8709.