pub struct KeySecurityAttributes {
pub always_sensitive: bool,
pub never_extractable: bool,
pub sensitive: bool,
pub extractable: bool,
pub wrap_with_trusted_only: bool,
pub usages: KeyUsages,
}Expand description
PKCS#11 key security attributes read from an HSM after key generation.
Records HSM-managed attribute state as evidence of key provenance and policy compliance in the ceremony transcript.
Fields§
§always_sensitive: boolKey was ALWAYS sensitive: never had CKA_SENSITIVE=false since creation.
This is the primary provenance indicator for PKCS#11 keys.
never_extractable: boolKey was NEVER extractable: never had CKA_EXTRACTABLE=true since creation.
sensitive: boolCurrent value of CKA_SENSITIVE.
extractable: boolCurrent value of CKA_EXTRACTABLE.
wrap_with_trusted_only: boolKey can only be wrapped by a key with CKA_TRUSTED=true (CKA_WRAP_WITH_TRUSTED).
usages: KeyUsagesWhat operations this key is permitted to perform (read from key object).
Trait Implementations§
Source§impl Clone for KeySecurityAttributes
impl Clone for KeySecurityAttributes
Source§impl Debug for KeySecurityAttributes
impl Debug for KeySecurityAttributes
Source§impl<'de> Deserialize<'de> for KeySecurityAttributes
impl<'de> Deserialize<'de> for KeySecurityAttributes
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
Auto Trait Implementations§
impl Freeze for KeySecurityAttributes
impl RefUnwindSafe for KeySecurityAttributes
impl Send for KeySecurityAttributes
impl Sync for KeySecurityAttributes
impl Unpin for KeySecurityAttributes
impl UnsafeUnpin for KeySecurityAttributes
impl UnwindSafe for KeySecurityAttributes
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