This commit is contained in:
nora 2024-08-30 01:10:06 +02:00
parent a081ecc8c8
commit 5102c3ff64
18 changed files with 527 additions and 143 deletions

View file

@ -1,5 +1,5 @@
pub mod client;
mod crypto;
pub mod crypto;
pub mod packet;
pub mod server;
@ -25,7 +25,7 @@ impl From<ParseError> for SshStatus {
}
}
pub trait SshRng {
pub trait SshRng: Send + Sync {
fn fill_bytes(&mut self, dest: &mut [u8]);
}
struct SshRngRandAdapter<'a>(&'a mut dyn SshRng);