Enum tss2_fapi_rs::KeyFlags
pub enum KeyFlags {
Decrypt,
Exportable,
NoDA,
Restricted,
Sign,
System,
User,
Persistent(NonZeroU32),
}
Expand description
Key creation flags, as used by the create_key()
function.
Variants§
Decrypt
The private portion of the key may be used to decrypt.
Exportable
The key may be exported from the TPM. By default, the key is not exportable.
NoDA
The key is not subject to dictionary attack protections.
Restricted
Key usage is restricted to manipulate structures of known format.
Sign
The private portion of the key may be used to sign.
System
Store the key in the system-wide directory.
User
Approval of USER role actions with this key may be with an HMAC session or with a password using the authValue of the object or a policy session.
Persistent(NonZeroU32)
Store key persistent in NV RAM. Contains the persistent handle which should be used.
Trait Implementations§
§impl Ord for KeyFlags
impl Ord for KeyFlags
§impl PartialOrd for KeyFlags
impl PartialOrd for KeyFlags
impl Copy for KeyFlags
impl Eq for KeyFlags
impl StructuralPartialEq for KeyFlags
Auto Trait Implementations§
impl Freeze for KeyFlags
impl RefUnwindSafe for KeyFlags
impl Send for KeyFlags
impl Sync for KeyFlags
impl Unpin for KeyFlags
impl UnwindSafe for KeyFlags
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)