Try again:

I am creating an NV index.  The following:
Tspi_NV_DefineSpace(hNVStore,0,0)
works just fine.

I add in these lines of code (before)

TSS_HPCRS   hPcrs;
BYTE            *rgbPcrValue=NULL;
UINT32         ulPcrLen

Tspi_Context_CreateObject9hContext,TSS_OBJECT_TYPE_PCRS, 0, &hPcrs);
Tspi_TPM_PcrRead(hTPM, 1, &ulPcrLen, &rgbPcrValue);
Tspi_PcrComposite_setPcrValue(hPcrs,1, ulPcrLen, rgbPcrValue);

and then try

Tspi_NV_DefineSpace(hNVStore,hPcrs,0);

and get an error 0x00003117 that
"Accessed object is in an inconsistent state."
Anyone buy me a clue?  No error messages are returned until I get to the
DefineSpace

On Mon, Mar 7, 2016 at 4:10 PM, David Challener <[email protected]
> wrote:

> Anyone done this successfully? I have code that successfully creates an NV
> index, using
>
> Tspi_NV_DefineSpace(hNVStore,0,0)
>
> I add in these lines of code (before)
>
> TSS_HPCRS   hPcrs;
> BYTE
>
> Tspi_Context_CreateObject9hContext,TSS_OBJECT_TYPE_PCRS, 0, &hPcrs);
>
>
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://makebettercode.com/inteldaal-eval
_______________________________________________
TrouSerS-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-users

Reply via email to