u-boot-brain/lib
Che-liang Chiou 8732b0700d tpm: Add TPM command library
TPM command library implements a subset of TPM commands defined in TCG
Main Specification 1.2 that are useful for implementing secure boot.
More TPM commands could be added out of necessity.

You may exercise these commands through the 'tpm' command.  However, the
raw TPM commands are too primitive for writing secure boot in command
interpreter scripts; so the 'tpm' command also provides helper functions
to make scripting easier.

For example, to define a counter in TPM non-volatile storage and
initialize it to zero:

$ tpm init
$ tpm startup TPM_ST_CLEAR
$ tpm nv_define d 0x1001 0x1
$ tpm nv_write d 0x1001 0

And then increment the counter by one:

$ tpm nv_read d 0x1001 i
$ setexpr.l i $i + 1
$ tpm nv_write d 0x1001 $i

Signed-off-by: Che-Liang Chiou <clchiou@chromium.org>
2013-04-12 14:13:13 -07:00
..
libfdt libfdt: update from upstream dtc commit 142419e 2013-02-07 20:38:55 -05:00
lzma lzma: update to lzma sdk 9.20 2012-12-06 13:56:38 -07:00
lzo GCC4.6: Squash warning in lzo1x_decompress.c 2011-10-01 23:34:38 +02:00
tizen create lib/tizen directory 2012-05-25 09:15:10 +02:00
zlib lib/zlib: sparse fixes 2012-11-04 11:00:36 -07:00
addr_map.c lib/powerpc: addrmap_phys_to_virt() should return a pointer 2012-07-06 17:30:32 -05:00
aes.c Add AES crypto library 2012-05-15 08:31:37 +02:00
asm-offsets.c arm: move C runtime setup code in crt0.S 2013-01-08 22:14:50 +01:00
bch.c nand: Merge BCH code from Linux nand driver 2012-01-26 16:09:02 -06:00
bzlib_crctable.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_decompress.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_huffman.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_private.h Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_randtable.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
circbuf.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
crc7.c lib: add crc7 from Linux 2011-01-18 23:38:08 +01:00
crc16.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
crc32.c Roll crc32 into hash infrastructure 2013-02-28 19:09:23 -08:00
ctype.c ctype: constify lookup table 2010-11-28 21:58:29 +01:00
display_options.c display_options:print_buffer: align ASCII print 2013-03-11 17:00:28 -04:00
div64.c Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
errno.c Add basic errno support. 2010-09-19 19:29:47 +02:00
fdtdec_test.c fdt: Add tests for fdtdec 2012-03-29 08:12:47 +02:00
fdtdec.c tpm: Add Infineon slb9635_i2c TPM driver 2013-04-12 14:13:00 -07:00
gunzip.c gunzip: rename z{alloc, free} to gz{alloc, free} 2012-04-30 16:54:51 +02:00
gzip.c lib: add gzip lib function callback 2012-09-29 07:26:08 -07:00
hashtable.c env: Add environment variable flags 2012-12-13 11:46:56 -07:00
initcall.c Introduce a basic initcall implementation 2013-03-15 16:13:59 -04:00
ldiv.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
linux_string.c Make linux kernel string funcs available to tools 2012-12-13 11:46:07 -07:00
lmb.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
Makefile tpm: Add TPM command library 2013-04-12 14:13:13 -07:00
md5.c GCC47: Fix warning in md5.c 2012-04-29 14:14:08 +02:00
net_utils.c string_to_ip: constify "s" arg 2010-11-28 21:56:39 +01:00
physmem.c Introduce arch_phys_memset which works like memset but on physical memory 2012-12-06 14:30:40 -08:00
qsort.c Include common.h in qsort.c to fix build warning 2011-12-07 08:39:54 +01:00
rand.c lib: add rand() function 2012-07-07 14:07:32 +02:00
rbtree.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
sha1.c sha1: Use const where possible, and unsigned for input len 2012-12-11 13:17:33 -07:00
sha256.c sha256: Use const where possible and add watchdog function 2012-12-11 13:17:33 -07:00
string.c Make linux kernel string funcs available to tools 2012-12-13 11:46:07 -07:00
strmhz.c strmhz: Make hz unsigned to support greater than 2146 MHz clock 2011-03-22 23:34:36 +01:00
time.c Move bootstage timer out of lib/time.c 2012-04-10 23:35:32 +02:00
tpm.c tpm: Add TPM command library 2013-04-12 14:13:13 -07:00
uuid.c lib: add uuid_str_to_bin for use with bootp and PXE uuid 2011-10-17 22:25:35 +02:00
vsprintf.c vsprintf: add ustrtoll function 2013-02-19 17:01:26 -05:00