pub struct SecurityKeySignature {
pub signature_der: Vec<u8>,
pub flags: u8,
pub counter: u32,
}Expand description
Result of an SK signing operation.
The signature blob for sk-ecdsa-sha2-nistp256@openssh.com is constructed
from these three fields:
string "sk-ecdsa-sha2-nistp256@openssh.com"
string mpint(r) || mpint(s) // extracted from signature_der
byte flags
uint32 counterFields§
§signature_der: Vec<u8>DER-encoded ECDSA P-256 signature (SEQUENCE { INTEGER r, INTEGER s }).
flags: u8User-presence flags from the TPM authenticator data. Bit 0 = User Present (UP), Bit 2 = User Verified (UV).
counter: u32Monotonic counter from the TPM, incremented on each assertion. Verifiers can check for replay/cloning by confirming counter increases.
Trait Implementations§
Source§impl Clone for SecurityKeySignature
impl Clone for SecurityKeySignature
Source§fn clone(&self) -> SecurityKeySignature
fn clone(&self) -> SecurityKeySignature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SecurityKeySignature
impl RefUnwindSafe for SecurityKeySignature
impl Send for SecurityKeySignature
impl Sync for SecurityKeySignature
impl Unpin for SecurityKeySignature
impl UnsafeUnpin for SecurityKeySignature
impl UnwindSafe for SecurityKeySignature
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