Struct ssh_packet::cryptography::PublickeySignature
source · pub struct PublickeySignature<'s> {
pub session_id: &'s Bytes,
pub username: &'s StringUtf8,
pub service_name: &'s StringAscii,
pub algorithm: &'s Bytes,
pub blob: &'s Bytes,
}
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: &'s Bytes
The session identifier issued by the key-exchange.
username: &'s StringUtf8
Username for the auth request.
service_name: &'s StringAscii
Service name to query.
algorithm: &'s Bytes
Public key algorithm’s name.
blob: &'s Bytes
Public key blob.
Implementations§
Trait Implementations§
source§impl<'s> BinWrite for PublickeySignature<'s>
impl<'s> BinWrite for PublickeySignature<'s>
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<'s> Clone for PublickeySignature<'s>
impl<'s> Clone for PublickeySignature<'s>
source§fn clone(&self) -> PublickeySignature<'s>
fn clone(&self) -> PublickeySignature<'s>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'s> Debug for PublickeySignature<'s>
impl<'s> Debug for PublickeySignature<'s>
source§impl<'s> WriteEndian for PublickeySignature<'s>
impl<'s> WriteEndian for PublickeySignature<'s>
source§const ENDIAN: EndianKind = _
const ENDIAN: EndianKind = _
The endianness of the type.
Auto Trait Implementations§
impl<'s> Freeze for PublickeySignature<'s>
impl<'s> RefUnwindSafe for PublickeySignature<'s>
impl<'s> Send for PublickeySignature<'s>
impl<'s> Sync for PublickeySignature<'s>
impl<'s> Unpin for PublickeySignature<'s>
impl<'s> UnwindSafe for PublickeySignature<'s>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)