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
Download source coded from github /github. com/01org/ TPM2.0- TSS /github. com/01org/ tpm2.0- tools
TPM2.0-TSS https:/
tpm2.0-tools https:/
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 listpcrs. sh pass getrandom. sh pass loadexternal. sh pass evictcontrol. sh pass akparse. sh pass certify. sh pass evictcontrol. sh pass getpubek. sh pass getpubak. sh pass makecredential. sh pass activecredentia l.sh pass readpublic. sh pass rsaencrypt. sh pass rsadecrypt. sh pass verifysignature .sh pass
test_tpm2_nv.sh pass
test_tpm2_
test_tpm2_
test_tpm2_load.sh pass
test_tpm2_
test_tpm2_
test_tpm2_hash.sh pass
test_tpm2_hmac.sh pass
test_tpm2_
test_tpm2_
test_tpm2_
test_tpm2_
test_tpm2_
test_tpm2_
test_tpm2_
test_tpm2_
test_tpm2_
test_tpm2_
test_tpm2_sign.sh pass
test_tpm2_
test_tpm2_quote.sh fail encryptdecrypt. sh fail
test_tpm2_unseal.sh fail
test_tpm2_