Struct ssh_parser::ssh::SshPacketDhInit [] [src]

pub struct SshPacketDhInit<'a> {
    pub e: &'a [u8],
}

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

Trait Implementations

impl<'a> Debug for SshPacketDhInit<'a>
[src]

Formats the value using the given formatter.

impl<'a> PartialEq for SshPacketDhInit<'a>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.