pub struct AttestedIdentity {
pub pcrs: Pcrs,
pub control_pubkey: [u8; 65],
}Expand description
Verified enclave identity extracted from an NSM attestation document.
Returned by verify_and_extract when the document validates and the
caller wants both the PCRs (for deriving a session key) and the
enclave’s ECDSA P-256 control pubkey (for verifying future
Transition signatures from this key).
Fields§
§pcrs: PcrsPCR0/1/2 from the validated document.
control_pubkey: [u8; 65]65-byte uncompressed SEC1 ECDSA P-256 verifying key extracted
from the doc’s user_data field. The synchronizer registers
this alongside the Pcrs::digest-derived key on first
attestation, and uses it to verify raw r||s signatures on
subsequent Transition RPCs.
Trait Implementations§
Source§impl Clone for AttestedIdentity
impl Clone for AttestedIdentity
Source§fn clone(&self) -> AttestedIdentity
fn clone(&self) -> AttestedIdentity
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 moreSource§impl Debug for AttestedIdentity
impl Debug for AttestedIdentity
impl Eq for AttestedIdentity
Source§impl PartialEq for AttestedIdentity
impl PartialEq for AttestedIdentity
Source§fn eq(&self, other: &AttestedIdentity) -> bool
fn eq(&self, other: &AttestedIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AttestedIdentity
Auto Trait Implementations§
impl Freeze for AttestedIdentity
impl RefUnwindSafe for AttestedIdentity
impl Send for AttestedIdentity
impl Sync for AttestedIdentity
impl Unpin for AttestedIdentity
impl UnsafeUnpin for AttestedIdentity
impl UnwindSafe for AttestedIdentity
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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