Enum tss2_fapi_rs::NvFlags
pub enum NvFlags {
BitField,
Counter,
PCR,
NoDA,
System,
Index(NonZeroU32),
}
Expand description
NV index creation flags, as used by the create_nv()
function.
Note: The Flags BitField
, Counter
and PCR
are mutually exclusive! If no type flag is given, an “ordinary” NV index is created.
Variants§
BitField
NV index contains an 8-octet value to be used as a bit field and can only be modified with TPM2_NV_SetBits
.
Counter
NV index contains an 8-octet value that is to be used as a counter and can only be modified with TPM2_NV_Increment
.
PCR
NV index contains a digestsized value used like a PCR. The Index can only be modified using TPM2_NV_Extend
.
NoDA
NV index is not subject to dictionary attack protections.
System
Store the NV index in the system-wide directory.
Index(NonZeroU32)
Store the NV index using the contained persistent handle value.
Trait Implementations§
§impl Ord for NvFlags
impl Ord for NvFlags
§impl PartialOrd for NvFlags
impl PartialOrd for NvFlags
impl Copy for NvFlags
impl Eq for NvFlags
impl StructuralPartialEq for NvFlags
Auto Trait Implementations§
impl Freeze for NvFlags
impl RefUnwindSafe for NvFlags
impl Send for NvFlags
impl Sync for NvFlags
impl Unpin for NvFlags
impl UnwindSafe for NvFlags
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
)