pub enum KeyCustody {
NonExportable,
ProcessMemory,
}Expand description
Where a provider’s wrapping key physically lives.
This is the property hardware binding actually buys, so it is reported explicitly rather than inferred from the provider’s name.
Variants§
NonExportable
The wrapping key was generated inside the hardware component and cannot be exported from it. Copying the sealed blob to another machine does not let an attacker open it.
An implementation MUST NOT report this unless the key was created non-exportable and an export attempt is refused by the platform.
ProcessMemory
The wrapping key exists in process memory at some point. Offers no cross-machine binding; a provider reporting this MUST NOT be treated as a hardware tier.
Implementations§
Source§impl KeyCustody
impl KeyCustody
Sourcepub const fn is_hardware_grade(self) -> bool
pub const fn is_hardware_grade(self) -> bool
Whether this custody level is strong enough to claim a hardware tier.
Trait Implementations§
Source§impl Clone for KeyCustody
impl Clone for KeyCustody
Source§fn clone(&self) -> KeyCustody
fn clone(&self) -> KeyCustody
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 moreimpl Copy for KeyCustody
Source§impl Debug for KeyCustody
impl Debug for KeyCustody
impl Eq for KeyCustody
Source§impl PartialEq for KeyCustody
impl PartialEq for KeyCustody
impl StructuralPartialEq for KeyCustody
Auto Trait Implementations§
impl Freeze for KeyCustody
impl RefUnwindSafe for KeyCustody
impl Send for KeyCustody
impl Sync for KeyCustody
impl Unpin for KeyCustody
impl UnsafeUnpin for KeyCustody
impl UnwindSafe for KeyCustody
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