pub struct SshPacketDhInit<'a> {
pub e: &'a [u8],
}
Expand description
SSH Key Exchange Client Packet
Defined in RFC4253 section 8 and errata.
The single field e is left unparsed because its representation depends on the negotiated key exchange algorithm:
- with a diffie hellman exchange on multiplicative group of integers modulo p, such as defined in RFC4253, the field is a multiple precision integer (defined in RFC4251 section 5).
- with a DH on elliptic curves, such as defined in RFC6239, the field is an octet string.
TODO: add accessors for the different representations
Fields§
§e: &'a [u8]
Trait Implementations§
Source§impl<'a> Debug for SshPacketDhInit<'a>
impl<'a> Debug for SshPacketDhInit<'a>
Source§impl<'a> PartialEq for SshPacketDhInit<'a>
impl<'a> PartialEq for SshPacketDhInit<'a>
impl<'a> StructuralPartialEq for SshPacketDhInit<'a>
Auto Trait Implementations§
impl<'a> Freeze for SshPacketDhInit<'a>
impl<'a> RefUnwindSafe for SshPacketDhInit<'a>
impl<'a> Send for SshPacketDhInit<'a>
impl<'a> Sync for SshPacketDhInit<'a>
impl<'a> Unpin for SshPacketDhInit<'a>
impl<'a> UnwindSafe for SshPacketDhInit<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more