Why does the following fail? (It is probably something trivial)
BYTE pcrSelection[5];
memset(pcrSelection,0,5);
pcrSelection[1]=0b00000011;
pcrSelection[4]=0b00000001;
(This is supposed to be a UINT16 value of 3 followed by a bit mask
selecting PCR 16)
result = Tspi_SetAtttribData(hNVStore,
TSS_TSPATTRIB_NV_PCR,TSS_TSPATTRIB_NVPCR_READPCRSELECTION,5,pcrSelection);
this gives a 0x00003003 error "Bad parameter"
This also happens when I define
TPM_PCR_SELECTION myPcrSelection;
myPcrSelection.sizeOfSelect=(UINT16)3;
myPcrSelection.pcrSelect[2]=0b00000001;
result = Tspi_SetAtttribData(hNVStore,
TSS_TSPATTRIB_NV_PCR,TSS_TSPATTRIB_NVPCR_READPCRSELECTION,5,myPcrSelection);
again giving a 0x00003003 error "Bad parameter"
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
TrouSerS-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-users