how to call nv_read with a custom NvIndexHandle #401
-
The example only shows how to call nv_read after getting the NvIndexHandle from nv_define_space. In my situation, I need to read nv memory that has already been written in the TPM. I am struggling to find the syntax to have my NvIndexHandle set to a custom address. I know it is possible because I can read it using tpm2_tools. Also, it was really easy to do with the old library: https://gitlab.com/starlab-io/tss-sapi/-/blob/master/examples/nvread.rs Thanks for the help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I suggest you look in the abstraction module. https://docs.rs/tss-esapi/latest/tss_esapi/abstraction/nv/fn.read_full.html To do this by hand can be a little bit complicated. You would need to retrieve an object handle for the NV memory area by calling |
Beta Was this translation helpful? Give feedback.
I suggest you look in the abstraction module.
https://docs.rs/tss-esapi/latest/tss_esapi/abstraction/nv/fn.read_full.html
To do this by hand can be a little bit complicated. You would need to retrieve an object handle for the NV memory area by calling
tr_from_tpm_public
and convert that into aNvIndexHandle
and then use that handle to read the nv memory area.