]> xenbits.xensource.com Git - seabios.git/commit
Support for BIOS interrupt handler
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Mon, 23 Mar 2015 18:22:17 +0000 (14:22 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 21 May 2015 17:16:06 +0000 (13:16 -0400)
commit5aa2a75463e2518de56fccb178b6c62b4fe377d9
treeb9c1f0fec1950c775798b07d4e65dd330b6e2778
parentb310dfa59913149bcb728176fd0fcb52731a97d8
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>
Makefile
src/clock.c
src/sha1.c [new file with mode: 0644]
src/sha1.h [new file with mode: 0644]
src/tcgbios.c
src/tcgbios.h
src/util.h
src/x86.h