|
From: Yu Xi <ge...@gm...> - 2011-03-28 13:34:17
|
Dear all,
I'm writing a testing program to recaculate the pcr value from IMA
measurement list following the procedure below:
*
*
*
*
* {
uchar PCR_tmp[20] = {0...0} // the initial value of pcr assigned to zero
for (i=0; i<MList.len; i++)
PCR_tmp = SHA1(PCR_tmp || MList[i]) // where || means concatenation
if (PCR == PCR_tmp)
return OK
else
return INVALID
}*
*
*
However the newly calculated value doesn't match the real PCR.
I found that some measurement enty in the list is "0000000000000000000000",
is this the reason for the problem? Could anybody help me to solve the
problem? Thank you very much.
--
Regards
Xi Yu (禹熹)
|