You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am trying to read NVRam using the TSS.Java in a location associated to a policy.
I have read that there is no complete support for policies in the Java implementation, but having a look around to the code, all the parts seem to be there.
I created the following snippet, checked that the policyDigest is equal to the one obtained listing the nvram entries. The problem is that I'm not able to fetch the value.
The missing policy support is an extra abstraction layer provided in .Net and C++ version of TSS.MSR. All the standard TPM functionality is completely available.
The problem with you code is likely the NV index value. Since you specify the complete index value, including the reserved MSB, you should use TPM_HANDLE() constructor, not the TPM_HANDLE.NV() factory method. With the latter you should use the 0x500016 value (without the MSB 0x01).
Otherwise your code looks good. For the future, when a command fails, the TPM returns an error response code that often is specific enough to pinpoint the source of the problem.
Hello,
I am trying to read NVRam using the TSS.Java in a location associated to a policy.
I have read that there is no complete support for policies in the Java implementation, but having a look around to the code, all the parts seem to be there.
I created the following snippet, checked that the policyDigest is equal to the one obtained listing the nvram entries. The problem is that I'm not able to fetch the value.
Am I missing something there?
Thanks.
Best regards,
Matteo
The text was updated successfully, but these errors were encountered: