9 Commits

Author SHA1 Message Date
wenxin.leong
67d0978779 Add support for SHA-384 and PCR Allocate
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.
2022-06-02 09:15:02 +02:00
wenxin.leong
3dd13d39ca Add optional parameter for setting hash algorithm
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.
2022-06-02 09:15:02 +02:00
Peter Huewe
5efe7e40f8 Fix reporting of TPM_PT_PERMANENT for -v on rev1.38
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>
2020-06-16 16:22:27 +02:00
Peter Huewe
db61889621 Fix whitespace/indention to make code more readable
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>
2018-03-22 23:29:33 +01:00
Peter Huewe
b01a7f2786 Use architecture independent format specifiers.
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>
2018-03-22 23:29:33 +01:00
Peter Huewe
771b11f775 Make eltt2 c99 compliant
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>
2018-03-22 23:29:33 +01:00
Furtner Thomas (IFAG CCS M CS AE)
e857919d34 update 2017-07-20 12:52:14 +02:00
thomas
31fc059693 add -v option to print variable TPM capabilites 2017-04-16 20:41:12 +02:00
Thomas Furtner
3e716caac2 Add files via upload 2017-04-07 08:11:32 +02:00