pub struct SignRequest {
pub pubkey: KeyData,
pub data: Vec<u8>,
pub flags: u32,
}
Expand description
Signature request with data to be signed with a key in an agent.
This structure is sent in a Request::SignRequest
(SSH_AGENTC_SIGN_REQUEST
) message.
Described in draft-miller-ssh-agent-14 § 3.6
Fields§
§pubkey: KeyData
The public key portion of the Identity
in the agent to sign the data with
data: Vec<u8>
Binary data to be signed
flags: u32
Signature flags, as described in draft-miller-ssh-agent-14 § 3.6.1
Trait Implementations§
Source§impl Clone for SignRequest
impl Clone for SignRequest
Source§fn clone(&self) -> SignRequest
fn clone(&self) -> SignRequest
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 Debug for SignRequest
impl Debug for SignRequest
Source§impl Decode for SignRequest
impl Decode for SignRequest
Source§impl Encode for SignRequest
impl Encode for SignRequest
Source§fn encoded_len(&self) -> Result<usize>
fn encoded_len(&self) -> Result<usize>
Get the length of this type encoded in bytes, prior to Base64 encoding.
Source§fn encode(&self, writer: &mut impl Writer) -> Result<()>
fn encode(&self, writer: &mut impl Writer) -> Result<()>
Encode this value using the provided
Writer
.Source§fn encoded_len_prefixed(&self) -> Result<usize, Error>
fn encoded_len_prefixed(&self) -> Result<usize, Error>
Return the length of this type after encoding when prepended with a
uint32
length prefix.Source§fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value, first prepending a
uint32
length prefix
set to Encode::encoded_len
.Source§impl PartialEq for SignRequest
impl PartialEq for SignRequest
impl StructuralPartialEq for SignRequest
Auto Trait Implementations§
impl Freeze for SignRequest
impl RefUnwindSafe for SignRequest
impl Send for SignRequest
impl Sync for SignRequest
impl Unpin for SignRequest
impl UnwindSafe for SignRequest
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