Hi David,
You are getting TSS_E_INVALID_OBJ_ACCESS, but curiously the TSS spec
doesn't list this as a
possible return from this method ;)
I know this doesn't totally solve it, but it looks like in this code path
this is what would result in that error code:
switch(pcrs->type) {
case TSS_PCRS_STRUCT_INFO:
result = TSPERR(TSS_E_INVALID_OBJ_ACCESS);
goto done
TSS_PCRS_STRUCT_INFO, as opposed to TSS_PCRS_STRUCT_INFO_SHORT,
or TSS_PCRS_STRUCT_INFO_LONG.
Admittedly I don't know what this means exactly, haven't worked with PCRs
as of yet, but maybe a clue?
-Tadd
There are a few places this can happen
On Mon, Mar 7, 2016 at 1:20 PM David Challener <[email protected]>
wrote:
> 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
>
------------------------------------------------------------------------------
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