pub struct Ecdh<'b> {
pub v_c: Bytes<'b>,
pub v_s: Bytes<'b>,
pub i_c: Lengthed<&'b KexInit<'b>>,
pub i_s: Lengthed<&'b KexInit<'b>>,
pub k_s: Bytes<'b>,
pub q_c: Bytes<'b>,
pub q_s: Bytes<'b>,
pub k: MpInt<'b>,
}
Expand description
The exchange hash for ECDH, computed as the hash of the concatenation of the following.
see https://datatracker.ietf.org/doc/html/rfc5656#section-4.
Fields§
§v_c: Bytes<'b>
Client’s identification string (\r
and \n
excluded).
v_s: Bytes<'b>
Server’s identification string (\r
and \n
excluded).
i_c: Lengthed<&'b KexInit<'b>>
Payload of the client’s SSH_MSG_KEXINIT
message.
i_s: Lengthed<&'b KexInit<'b>>
Payload of the server’s SSH_MSG_KEXINIT
message.
k_s: Bytes<'b>
Server’s public host key.
q_c: Bytes<'b>
Client’s ephemeral public key octet string.
q_s: Bytes<'b>
Server’s ephemeral public key octet string.
k: MpInt<'b>
Computed shared secret.
Implementations§
Trait Implementations§
Source§impl<'b> BinWrite for Ecdh<'b>
impl<'b> BinWrite for Ecdh<'b>
Source§fn write_options<W: Write + Seek>(
&self,
__binrw_generated_var_writer: &mut W,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<()>
fn write_options<W: Write + Seek>( &self, __binrw_generated_var_writer: &mut W, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<()>
Source§fn write<W>(&self, writer: &mut W) -> Result<(), Error>
fn write<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self
to the writer using default arguments. Read moreSource§fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self
to the writer assuming big-endian byte order. Read moreSource§fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self
to the writer assuming little-endian byte order. Read moreSource§fn write_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>,
) -> Result<(), Error>
fn write_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
Write
Self
to the writer using the given arguments. Read moreSource§impl<'b> WriteEndian for Ecdh<'b>
impl<'b> WriteEndian for Ecdh<'b>
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
Auto Trait Implementations§
impl<'b> Freeze for Ecdh<'b>
impl<'b> RefUnwindSafe for Ecdh<'b>
impl<'b> Send for Ecdh<'b>
impl<'b> Sync for Ecdh<'b>
impl<'b> Unpin for Ecdh<'b>
impl<'b> UnwindSafe for Ecdh<'b>
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