#[non_exhaustive]pub enum AttestationKind {
HardwareCertChain,
TpmQuote,
Pkcs11Attributes,
}Expand description
The kind of attestation evidence a backend can produce.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
HardwareCertChain
Vendor cert chain proving on-device generation. Independently verifiable
against a public manufacturer root CA.
Examples: YubiKey F9 attestation, Thales Luna PKC (Public Key Confirmation).
TpmQuote
TPM signed quote over PCR values with nonce. Proves platform state.
Pkcs11Attributes
PKCS#11 attribute flags: CKA_ALWAYS_SENSITIVE=true + CKA_NEVER_EXTRACTABLE=true.
Trustworthy within the HSM’s trust boundary but not independently
cryptographically verifiable.
Trait Implementations§
Source§impl Clone for AttestationKind
impl Clone for AttestationKind
Source§fn clone(&self) -> AttestationKind
fn clone(&self) -> AttestationKind
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 AttestationKind
impl Debug for AttestationKind
Source§impl<'de> Deserialize<'de> for AttestationKind
impl<'de> Deserialize<'de> for AttestationKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AttestationKind
impl PartialEq for AttestationKind
Source§fn eq(&self, other: &AttestationKind) -> bool
fn eq(&self, other: &AttestationKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AttestationKind
impl Serialize for AttestationKind
impl Copy for AttestationKind
impl Eq for AttestationKind
impl StructuralPartialEq for AttestationKind
Auto Trait Implementations§
impl Freeze for AttestationKind
impl RefUnwindSafe for AttestationKind
impl Send for AttestationKind
impl Sync for AttestationKind
impl Unpin for AttestationKind
impl UnsafeUnpin for AttestationKind
impl UnwindSafe for AttestationKind
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