问题:
- tpm2-tss安装中执行make check时fail: /test/integration
- 现象
PASS: test/unit/esys-getpollhandles
PASS: test/unit/esys-nulltcti
PASS: test/unit/esys-crypto
FAIL: test/integration/sapi-asymmetric-encrypt-decrypt.int
FAIL: test/integration/sapi-primary-rsa-2K-aes128cfb.int
FAIL: test/integration/sapi-create-keyedhash-sha1-hmac.int
FAIL: test/integration/sapi-encrypt-decrypt.in
问题环境
- 系统:ubuntu 18.04.4 LTS
- TPM模拟器版本:ibmtpm1332
- TPM2-TSS版本:2.1.0
原因
- 配置 ./configure --enable-unit --enable-integration时失败,其根源是相关依赖包的缺失
解决方法
- 根据官网安装文件重新添加依赖包
- 步骤
-
前往tpm2-tss官网 https://github.com/tpm2-software/tpm2-tss
-
根据自己下载的tpm2-tss版本选择版本对应的分支,这里我选择2.1.x
-
点击INSTALL.md文件。查看完成构建测试套件时需要添加的依赖
-
下图中是ubuntu中安装tpm2-tss 2.1.0协议栈所添加的依赖,对应的安装到系统中。
-
重新执行
./configure --enable-unit --enable-integration
sudo make check