parallaxsecond / rust-tss-esapi

TSS 2.0 Enhanced System API (ESAPI) Rust wrapper
https://docs.rs/tss-esapi/
Apache License 2.0
86 stars 51 forks source link

Add definition for UndefineSpaceSpecial #459

Closed nathanrossi closed 11 months ago

nathanrossi commented 11 months ago

Add a implementation for the UndefineSpaceSpecial function which is used to delete an NV index that has the TPMA_NV_POLICY_DELETE attribute set.

An example and test are included for this function, setting up the NV index and deleting it requires additional initialization of a policy digest as well as a policy session in order to perform the delete due to the policy requiring the NvUndefineSpaceSpecial command code defined.