Comment 6 for bug 1561834

Revision history for this message
Jerry Kao (jerry.kao) wrote :

Download source coded from github
TPM2.0-TSS https://github.com/01org/TPM2.0-TSS
tpm2.0-tools https://github.com/01org/tpm2.0-tools

Follow the install instructions (https://github.com/01org/TPM2.0-TSS/blob/master/INSTALL, https://github.com/01org/tpm2.0-tools/blob/master/INSTALL) to install following required packages

install build-essential autoconf automake libtool autoconf-archive pkg-config openssl curl libssl-dev libcurl4-gnutls-dev

compile TTS and insatall
$ ./bootstrap
$ ./configure
$ make
$ sudo make install

compile tpm2.0-tools
$ ./bootstrap
$ ./configure
$ make
$ sudo make install

run resource manager daemon
$ sudo resourcemgr

run tests
$ ./test/test_all.sh

got test result as following

test_tpm2_takeownership_all.sh pass
test_tpm2_nv.sh pass
test_tpm2_listpcrs.sh pass
test_tpm2_getrandom.sh pass
test_tpm2_load.sh pass
test_tpm2_loadexternal.sh pass
test_tpm2_evictcontrol.sh pass
test_tpm2_hash.sh pass
test_tpm2_hmac.sh pass
test_tpm2_akparse.sh pass
test_tpm2_certify.sh pass
test_tpm2_evictcontrol.sh pass
test_tpm2_getpubek.sh pass
test_tpm2_getpubak.sh pass
test_tpm2_makecredential.sh pass
test_tpm2_activecredential.sh pass
test_tpm2_readpublic.sh pass
test_tpm2_rsaencrypt.sh pass
test_tpm2_rsadecrypt.sh pass
test_tpm2_sign.sh pass
test_tpm2_verifysignature.sh pass

test_tpm2_quote.sh fail
test_tpm2_unseal.sh fail
test_tpm2_encryptdecrypt.sh fail