pub struct Publickey<'b> {
pub session_id: Bytes<'b>,
pub username: Utf8<'b>,
pub service_name: Ascii<'b>,
pub algorithm: Bytes<'b>,
pub blob: Bytes<'b>,
}
Expand description
The data that gets signed and verified to prove the possession of the said private key in
the publickey
authentication method, computed from the concatenation of the following.
see https://datatracker.ietf.org/doc/html/rfc4252#section-7.
Fields§
§session_id: Bytes<'b>
The session identifier issued by the key-exchange.
username: Utf8<'b>
Username for the auth request.
service_name: Ascii<'b>
Service name to query.
algorithm: Bytes<'b>
Public key algorithm’s name.
blob: Bytes<'b>
Public key blob.
Implementations§
Trait Implementations§
Source§impl<'b> BinWrite for Publickey<'b>
impl<'b> BinWrite for Publickey<'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 Publickey<'b>
impl<'b> WriteEndian for Publickey<'b>
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
Auto Trait Implementations§
impl<'b> Freeze for Publickey<'b>
impl<'b> RefUnwindSafe for Publickey<'b>
impl<'b> Send for Publickey<'b>
impl<'b> Sync for Publickey<'b>
impl<'b> Unpin for Publickey<'b>
impl<'b> UnwindSafe for Publickey<'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