关于tpm2-tss协议栈make check中test/integration全部失败

问题:

  • 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时失败,其根源是相关依赖包的缺失

解决方法

  • 根据官网安装文件重新添加依赖包
  • 步骤
  1. 前往tpm2-tss官网 https://github.com/tpm2-software/tpm2-tss

  2. 根据自己下载的tpm2-tss版本选择版本对应的分支,这里我选择2.1.x

  3. 点击INSTALL.md文件。查看完成构建测试套件时需要添加的依赖

  4. 下图中是ubuntu中安装tpm2-tss 2.1.0协议栈所添加的依赖,对应的安装到系统中。
    在这里插入图片描述

  5. 重新执行

./configure --enable-unit --enable-integration
sudo make check

在这里插入图片描述

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值