extern crate alloc;
#[derive(Debug, Clone)]
pub struct KexAlgorithms<'a> {
pub kex: &'a [&'a str],
pub server_host_key: &'a [&'a str],
pub ciphers_c2s: &'a [&'a str],
pub ciphers_s2c: &'a [&'a str],
pub macs_c2s: &'a [&'a str],
pub macs_s2c: &'a [&'a str],
pub comp_c2s: &'a [&'a str],
pub comp_s2c: &'a [&'a str],
pub lang_c2s: &'a [&'a str],
pub lang_s2c: &'a [&'a str],
}
#[derive(Debug, Clone)]
pub struct Negotiated {
pub kex: alloc::string::String,
pub host_key: alloc::string::String,
pub cipher_c2s: alloc::string::String,
pub cipher_s2c: alloc::string::String,
pub mac_c2s: alloc::string::String,
pub mac_s2c: alloc::string::String,
pub comp_c2s: alloc::string::String,
pub comp_s2c: alloc::string::String,
}
pub mod defaults {
pub const KEX: &[&str] = &[
"curve25519-sha256",
"curve25519-sha256@libssh.org",
"ecdh-sha2-nistp256",
"ecdh-sha2-nistp384",
"ecdh-sha2-nistp521",
"diffie-hellman-group-exchange-sha256",
"diffie-hellman-group16-sha512",
"diffie-hellman-group18-sha512",
"diffie-hellman-group14-sha256",
];
pub const HOST_KEY: &[&str] = &[
"ssh-ed25519",
"ecdsa-sha2-nistp256",
"ecdsa-sha2-nistp384",
"ecdsa-sha2-nistp521",
"rsa-sha2-512",
"rsa-sha2-256",
];
pub const CIPHERS: &[&str] = &[
"chacha20-poly1305@openssh.com",
"aes256-gcm@openssh.com",
"aes128-gcm@openssh.com",
"aes256-ctr",
"aes192-ctr",
"aes128-ctr",
];
pub const MACS: &[&str] = &[
"hmac-sha2-256-etm@openssh.com",
"hmac-sha2-512-etm@openssh.com",
"hmac-sha2-256",
"hmac-sha2-512",
];
pub const COMP: &[&str] = &["none"];
}