Commit Graph

3 Commits

Author SHA1 Message Date
Stefan Berger 4e57a54703 Add implementations for sha256, sha384, and sha512
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2021-06-30 16:58:48 -04:00
Stefan Weil 6bcacf7d19 Fix typos found by codespell
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2015-10-09 13:34:28 -04:00
Stefan Berger 5aa2a75463 Support for BIOS interrupt handler
This patch implements the TCG BIOS interrupt handler 1ah. It is for
example used by trusted grub.

This patch adds an implementation of SHA1 (following NIST specs., IETF RFC 3147
and Wikipedia) for speeding up measurements of code. Trusted Grub for example
makes use of this interface and measures (calculates SHA1) of the Linux kernel
and initrd. Those files can be rather large and hunting their bytes through
the TIS interface as part of the int handler commands invoked by trusted grub
does take quite some time due to the many vmexits the interface is creating
(one per byte).

There is also a threshold for the size of data to hash (100k) below which
the TPM is used and above the internal faster SHA1 algorithm is used.

This patch for example enables trusted grub to interact with the TPM
and take additional measurements.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2015-05-21 13:16:06 -04:00