verify signature

This commit is contained in:
nora 2024-08-25 22:50:34 +02:00
parent ae425fdefa
commit 3124e6a2ab
14 changed files with 373 additions and 36 deletions

View file

@ -1,15 +1,23 @@
pub mod authorized_keys;
mod crypto;
pub mod signature;
use crypto::{Cipher, Kdf};
use cluelessh_transport::{
key::PublicKey,
parse::{self, Parser, Writer},
};
use crypto::{Cipher, Kdf};
// TODO: good typed error messages so the user knows what's going on
pub use crypto::{KeyGenerationParams, KeyType};
#[derive(Debug, Clone, PartialEq)]
pub struct PublicKeyWithComment {
pub key: PublicKey,
pub comment: String,
}
pub struct EncryptedPrivateKeys {
pub public_keys: Vec<PublicKey>,
pub cipher: Cipher,