linux下测试tpm,linux tpm 測試完整記錄,親測有效。

这篇博客详细记录了在Linux系统下,如何在没有TPM芯片的情况下,通过模拟器进行TPM测试的全过程。从准备软件包、安装TPM_emulator、trousers到tpm-tools,博主详细阐述了每个步骤,并给出了使用示例,包括加密和解密文件的操作。
摘要由CSDN通过智能技术生成

沒有tpm芯片,采用模擬器的方式來測試。

實驗環境:內核版本 3.10.0-327

軟件包准備:

內網,沒有倉庫,自己網上下載:

1. cmake-3.9.6-Linux-x86_64.tar.gz

解壓后就已經有bin文件,可以直接使用bin下的cmake,

ls cmake-3.9.6-Linux-x86_64/

bin doc man share

2. 然后下載gmp,我使用的是gmp-6.1.2版本,

./configure && make && make install

在install的時候,它會提醒要求make check

+-------------------------------------------------------------+

| CAUTION: |

| |

| If you have not already run "make check", then we strongly |

| recommend you do so. |

| |

| GMP has been carefully tested by its authors, but compilers |

| are all too often released with serious bugs. GMP tends to |

| explore interesting corners in compilers and has hit bugs |

| on quite a few occasions. |

| |

+-------------------------------------------------------------+

我也按要求操作一把,沒看到什么區別,但是同事在復制我的過程的時候,還是有些區別,建議大家安裝步驟來。

3.安裝tpm_emulator

因為並沒有真實的芯片,所以還需要安裝模擬器,如果有真實的芯片支持,則可以跳過安裝模擬器這一步。

下載並解壓之后,老規矩,先看readme,readme中針對不同的操作系統給了不同的步驟。

The compilation and installation of the TPM emulator package is based on

the CMake build environment (version 2.6or better) and requires that the

GNU MP library (version 4.0or better) is properly installed on your

system. A working MinGW compiler suite is further required on Windows

(see http://www.mingw.org/). To compile and install the package execute:

# tar -xvzf tpm_emulator-X.Y.tar.gz

# cd tpm_emulator-X.Y

# mkdirbuild

# cd build

# cmake ../ ----------這一步,由於我們第一

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值