pub struct KexState {
pub server_ephemeral_private: [u8; 32],
pub server_ephemeral_public: [u8; 32],
pub client_ephemeral_public: [u8; 32],
pub shared_secret: [u8; 32],
pub exchange_hash: [u8; 32],
pub complete: bool,
}Expand description
Key exchange state for curve25519-sha256
Fields§
§server_ephemeral_private: [u8; 32]Our (server) ephemeral private key
server_ephemeral_public: [u8; 32]Our (server) ephemeral public key
client_ephemeral_public: [u8; 32]Client ephemeral public key (from SSH_MSG_KEX_ECDH_INIT)
Shared secret K
exchange_hash: [u8; 32]Exchange hash H (session ID on first exchange)
complete: boolWhether key exchange is complete
Implementations§
Trait Implementations§
impl Eq for KexState
impl StructuralPartialEq for KexState
Auto Trait Implementations§
impl Freeze for KexState
impl RefUnwindSafe for KexState
impl Send for KexState
impl Sync for KexState
impl Unpin for KexState
impl UnwindSafe for KexState
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)