pub struct TransportKeys {
pub enc_key_c2s: [u8; 32],
pub enc_key_s2c: [u8; 32],
pub mac_key_c2s: [u8; 32],
pub mac_key_s2c: [u8; 32],
pub iv_c2s: [u8; 12],
pub iv_s2c: [u8; 12],
}Expand description
SSH transport encryption keys derived from key exchange
Fields§
§enc_key_c2s: [u8; 32]Encryption key client-to-server
enc_key_s2c: [u8; 32]Encryption key server-to-client
mac_key_c2s: [u8; 32]Integrity key client-to-server
mac_key_s2c: [u8; 32]Integrity key server-to-client
iv_c2s: [u8; 12]IV client-to-server
iv_s2c: [u8; 12]IV server-to-client
Implementations§
Source§impl TransportKeys
impl TransportKeys
Trait Implementations§
Source§impl Clone for TransportKeys
impl Clone for TransportKeys
Source§fn clone(&self) -> TransportKeys
fn clone(&self) -> TransportKeys
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransportKeys
impl Debug for TransportKeys
Source§impl Default for TransportKeys
impl Default for TransportKeys
Source§impl PartialEq for TransportKeys
impl PartialEq for TransportKeys
impl Eq for TransportKeys
impl StructuralPartialEq for TransportKeys
Auto Trait Implementations§
impl Freeze for TransportKeys
impl RefUnwindSafe for TransportKeys
impl Send for TransportKeys
impl Sync for TransportKeys
impl Unpin for TransportKeys
impl UnwindSafe for TransportKeys
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)