SHA-384 is now supported in:
- Hash sequence (-a/-A)
- Hash (-s/-S)
- PCR extend (-e/-E)
- PCR read (-r/-R)
New command line option (-l) to support PCR allocation for SHA-1/256/384 bank.
Add a new optional parameter (e.g., 'sha1', 'sha256') to set the hash algorithm for option '-a', '-e', '-r', and '-s'. If the parameter is not present, default value is SHA-1.
With TPM Spec Revision 1.38 new values were added for the fixed
capabilities, so the old limit of 0x2D elements is not sufficient
anymore. Increase it to the value of 101+1, so we get the
TPM_PT_PERMANENT flag in anycase.
Also updated two comments (see PR#14)
Signed-off-by: Peter Huewe <peter.huewe@infineon.com>
For some reason the indention and whitespaces were quite messed up.
This patchset fixes this and makes the code much more readable
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
On 64bit machines the compilation yielded some warnings due to incorrect
format specifiers. Use the standard one from inttypes.h.
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Some implicit headerfiles were missing, if used without -std=gnu99.
Since we do not rely on gnu99 behavior by including the header files,
we can use -std=c99, which we state explicitly in the Makefile now.
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>