pub struct Attestation(/* private fields */);Expand description
Device attestation a server presents in the handshake, a CWT in one of the shapes darkbio-trust defines (hardware or emulator claims). Only the shape is checked, so an obviously wrong blob is refused up front; whether it is accepted is the client’s decision.
Implementations§
Trait Implementations§
Source§impl Attester for Attestation
A fixed attestation, presented as is on every handshake.
impl Attester for Attestation
A fixed attestation, presented as is on every handshake.
Source§fn attest(&mut self) -> Attestation
fn attest(&mut self) -> Attestation
Returns the device attestation to present to the client (e.g. a root-signed
CWT read from disk, or a self-signed fallback for pre-onboarding devices).
The identity key it embeds must be the one signing the wire’s handshake.
Source§impl Clone for Attestation
impl Clone for Attestation
Source§fn clone(&self) -> Attestation
fn clone(&self) -> Attestation
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 Attestation
impl RefUnwindSafe for Attestation
impl Send for Attestation
impl Sync for Attestation
impl Unpin for Attestation
impl UnsafeUnpin for Attestation
impl UnwindSafe for Attestation
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