首页 > 其他 > 详细

Ubuntu 12 下构建模拟TPM环境

时间:2014-04-02 10:47:05      阅读:662      评论:0      收藏:0      [点我收藏+]

Ubuntu 12 下构建模拟TPM环境


1.安装CMake

下载网址:http://www.cmake.org/

我下载的版本是cmake-2.8.8.tar.gz

解压:#tar -zxf cmake-2.8.8.tar.gz

安装:(1)#cd cmake-2.8.8

     (2)#./bootstrap

     (3)#make

      (4)#makeinstall

参考其中的Readme.txt文件


2.安装GNU MPlibrary

下载网址:http://gmplib.org

我下载的版本是gmp-6.0.0a.tar

安装:(1)#./configure

      (2)#make

      (3)#make check

       (4)#makeinstall

参考其中的INSTALL文件

若出现提示缺少m4,则敲入命令apt-get install m4

3.安装Tpm_emulator

下载:https://developer.berlios.de/project/showfiles.php?group_id=2491

我下载的版本tpm_emulator-0.7.4.tar.gz

解压:#tar -xzf tpm_emulator-0.7.4.tar.gz

安装:(1) #cd tpm_emulator-X.Y
     (2) #mkdir build
     (3) #cd build
     (4) #cmake ../
      (5)#make
      (6)#make install
参考其中的README文件

初始化
#tpmd deactivated
#killall tpmd
#tpmd clear
启动软TPM
#modprobe tpmd_dev

#tpmd -f -d clear      (tpmd -h查看启动参数)

若出现Module tpmd_dev not found,则先运行命令depmod -a

若出现failed: address already in use,则运行命令rm/var/run/tpm/tpmd_socket:0

若成功,会不断出现如下提示:

tpmd.c:310: Debug: waiting for connections...


4.TSS协议栈安装

下载网址:http://sourceforge.net/project/showfiles.php?group_id=126012

我下载的协议栈包如下:

首先安装trousers-0.3.8.tar.gz

解压:#tar -zxf trousers-0.3.8.tar.gz

安装:参考其中的README文件

(1)在编译前,我们首先对其中的几个文件进行修改

修改./src/tcsd/Makefile.am第4行如下:

tcsd_LDADD=${top_builddir}/src/tcs/libtcs.a${top_builddir}/src/tcs/libtddl.so -lpthread @CRYPTOLIB@

注意:上面为一行

tcsd_LDADD=${top_builddir}/src/tcs/libtcs.a/usr/local/lib/libtddl.so -lpthread @CRYPTOLIB@

 

修改./src/tcsd/Makefile.in第55, 56行如下:

 55 tcsd_DEPENDENCIES =${top_builddir}/src/tcs/libtcs.a \
 56        ${top_builddir}/src/tcs/libtddl.so

为:
 55 tcsd_DEPENDENCIES =${top_builddir}/src/tcs/libtcs.a \
 56        /usr/local/lib/libtddl.so

注:上面修改中的/usr/local/lib/有时可能会是/usr/lib,可查看libtddl.so的位置来确定是哪个目录。
(2)该版本文件夹中没有bootstrap,因此,sh bootstrap.sh步骤省去

(3)#./configure

(4)#make

(5)#make install

启动TCSD
#tcsd -e -f

在启动TCSD之前,必须先启动tpm-emulator,否则会提示找不到设备.

在make中,可能会出现将警告当做错误的情况,使得make无法继续下去,有以下几种解决办法:

- add -Wno-error=unused-but-set-variable to CFLAGS to turn itinto a
  warning; or
- remove -Werror from CFLAGS (or append -Wno-error) tocontinue
  compiling despite warnings; or
- use -Wno-unused-but-set-variable to disable that particularwarning
  entirely.

我使用了第三种,即将命令(3)改为env CFLAGS="-Wno-unused-but-set-variable"./configure

一切正常。

然后安装tpm-tools-1.3.8.tar.gz

解压缩:#tar -zxf tpm-tools-1.3.8.tar.gz

安装过程参考其中的README文件

 (1) # sh./bootstrap.sh  因为没有bootstrap.sh文件,所以该步省掉
 (2) # ./configure
 (3) # make
 (4) # make install

若出现ld returned 1 exit status,error, undefinedreference的情况,可将(2)命令改为

./configure --prefix=/usr

参考自http://sourceforge.net/mailarchive/forum.php?thread_name=8EC9AB6E66453948A332E1C0D268369D09FF82@IMCMBX03.MITRE.ORG&forum_name=trousers-users

原话为:

what may be happening here is that when you rebuildtrousers
from source it gets installed in /usr/local by default, then whenyou
build tpm-tools it can only find your distro‘s libtspi.so in/usr/lib.
 ./configure --prefix=/usr should fix this.

成功解决。

6.检测是否成功安装:

tpm-tools-1.3.8/src/tpm_mgmt/目录下查看以下三个信息:

#./tpm_version      #查看版本号

#./tpm_getpubek   #查看ek公钥

#./tpm_takeownership   #获取owner

注:如果都成功表明TPM模拟环境已经完全构建成功了。

如果 tpm_version 出现tpm_version: error while loading sharedlibraries: libtspi.so.1: cannot open shared object file: No suchfile or directory,  则使用命令apt-get installlibtspi-dev

若出现Tspi_Context_Connect failed: 0x00003011 - layer=tsp,code=0011 (17), Communication failure
,则开启tpmd和tcsd即可。

另外,

在tpm_emulator-0.7.4/tddl文件夹下有测试事例:
../tpm_emulator-0.7.4/tddl# gcc -o test_tddl test_tddl.c -ltddl//-ltddl 为链接tddl的动态链接库
../tpm_emulator-0.7.4/tddl#LD_LIBRARY_PATH=/usr/local/lib ./test_tddl//运行结果

因为$PATH中没有路径/usr/local/lib,因此,需要加上LD_LIBRARY_PATH=/usr/local/lib,不然会报错


gcc -g -O2 -m64 -Wall -Werror -Wreturn-type -Wsign-compare -o tpm_changeownerauth tpm_changeauth.o  ../../lib/.libs/libtpm_tspi.a -ldl -ltspi -L/usr/local/lib

LDFLAGS=-L/usr/local/lib




/***********************************************************TPMD*********************************************************************************************************/

检查当前是否运行tpmd,若运行,先kill

$ ps -ef |grep tpmd
xjq      18341  9435  0 10:51 pts/5    00:00:00 grep --color=auto tpmd
root     20664     1  0 10:02 ?        00:00:00 tpmd -d

初始化
#tpmd deactivated
#killall tpmd
#tpmd clear
启动软TPM
#modprobe tpmd_dev

#rm /var/run/tpm/tpmd_socket:0

#tpmd -f -d clear

如下是结果:

tpmd.c:390: Info: starting TPM Emulator daemon (1.2.0.7-475)
tpmd.c:93: Info: parsing options
tpmd.c:100: Debug: debug mode enabled
tpmd.c:198: Info: installing signal handlers
tpmd.c:295: Info: staring main loop
tpmd.c:265: Info: initializing socket /var/run/tpm/tpmd_socket:0
tpmd.c:300: Debug: initializing TPM emulator
tpm_emulator_extern.c:101: Info: _tpm_extern_init()
tpm_emulator_extern.c:104: Debug: openening random device /dev/urandom
tpm_cmd_handler.c:4113: Debug: tpm_emulator_init(2, 0x00000000)
tpm_data.c:120: Info: initializing TPM data to default values
tpm_startup.c:29: Info: TPM_Init()
tpm_testing.c:243: Info: TPM_SelfTestFull()
tpm_testing.c:39: Debug: tpm_test_prng()
tpm_testing.c:69: Debug: Monobit: 9972
tpm_testing.c:70: Debug: Poker:   17.5
tpm_testing.c:71: Debug: run_1:   2598, 2602
tpm_testing.c:72: Debug: run_2:   1235, 1231
tpm_testing.c:73: Debug: run_3:   652, 647
tpm_testing.c:74: Debug: run_4:   291, 291
tpm_testing.c:75: Debug: run_5:   142, 168
tpm_testing.c:76: Debug: run_6+:  162, 140
tpm_testing.c:77: Debug: run_34:  0
tpm_testing.c:111: Debug: tpm_test_sha1()
tpm_testing.c:157: Debug: tpm_test_hmac()
tpm_testing.c:184: Debug: tpm_test_rsa_EK()
tpm_testing.c:186: Debug: tpm_rsa_generate_key()
tpm_testing.c:191: Debug: testing endorsement key
tpm_testing.c:197: Debug: tpm_rsa_sign(RSA_SSA_PKCS1_SHA1)
tpm_testing.c:200: Debug: tpm_rsa_verify(RSA_SSA_PKCS1_SHA1)
tpm_testing.c:203: Debug: tpm_rsa_sign(RSA_SSA_PKCS1_DER)
tpm_testing.c:206: Debug: tpm_rsa_verify(RSA_SSA_PKCS1_DER)
tpm_testing.c:210: Debug: tpm_rsa_encrypt(RSA_ES_PKCSV15)
tpm_testing.c:214: Debug: tpm_rsa_decrypt(RSA_ES_PKCSV15)
tpm_testing.c:218: Debug: verify plain text
tpm_testing.c:221: Debug: tpm_rsa_encrypt(RSA_ES_OAEP_SHA1)
tpm_testing.c:225: Debug: tpm_rsa_decrypt(RSA_ES_OAEP_SHA1)
tpm_testing.c:229: Debug: verify plain text
tpm_testing.c:261: Info: Self-Test succeeded
tpm_startup.c:43: Info: TPM_Startup(2)
tpm_startup.c:87: Error: restoring permanent data failed
tpmd.c:310: Debug: waiting for connections...
tpmd.c:310: Debug: waiting for connections...
tpmd.c:310: Debug: waiting for connections...

/***********************************************************TPMD******END**********************************************************************************************/



/***********************************************************TCSD*********************************************************************************************************/

#tcsd -e -f

TCSD TDDL ioctl: (25) Inappropriate ioctl for device
TCSD TDDL Falling back to Read/Write device support.
TCSD trousers 0.3.8: TCSD up and running.

/***********************************************************TCSD******END**********************************************************************************************/




/***********************************************************TPM-EMULATOR*********************************************************************************************/

# tpm_version

  TPM 1.2 Version Info:
  Chip Version:        1.2.0.7
  Spec Level:          2
  Errata Revision:     1
  TPM Vendor ID:       ETHZ
  TPM Version:         01010000
  Manufacturer Info:   4554485a


#tpm_getpubek

Public Endorsement Key:
  Version:   01010000
  Usage:     0x0002 (Unknown)
  Flags:     0x00000000 (!VOLATILE, !MIGRATABLE, !REDIRECTION)
  AuthUsage: 0x00 (Never)
  Algorithm:         0x00000020 (Unknown)
  Encryption Scheme: 0x00000012 (Unknown)
  Signature Scheme:  0x00000010 (Unknown)
  Public Key:
    a8dba942 a8f3b806 85907693 adf774ec 3fd33d9d e82eff15 ed0ece5f 9392ebd1
    962b7218 8179129d 9c40d71a 21da5f56 e0c94831 dd96dcbb 45c68ead 5823cbbe
    bb132d6b 86c557f5 dd48c13d cd4dda81 c44317aa 05403362 0a59db28 cdb50831
    bb06f5f7 71ae21a8 f22f0e17 805d9cdf aae98909 54652b46 fb9db200 70630d9a
    6d3d5e11 786590e6 26ee77be 08ff0760 5accf10a bd44926b cab6ce66 f99340ae
    f33e5302 3ca681b3 bead6e6c a6f0ebdf e9a28336 0e520d64 17d9ffa1 747c2bbc
    6acce54e b452d9ec 43bd266a 2b19196e 97b81d9f 7be7322d dd7c51c8 e4f302d4
    7c9044a0 33728175 a916275c 001d0781 d4f7accb fed66003 6f7acc00 d1c48537


#tpm_takeownership

Enter owner password:
Confirm password:
Enter SRK password:
Confirm password:



期间TPMD的输出:

tpmd.c:390: Info: starting TPM Emulator daemon (1.2.0.7-475)
tpmd.c:93: Info: parsing options
tpmd.c:100: Debug: debug mode enabled
tpmd.c:145: Debug: startup mode = ‘clear‘
tpmd.c:198: Info: installing signal handlers
tpmd.c:295: Info: staring main loop
tpmd.c:265: Info: initializing socket /var/run/tpm/tpmd_socket:0
tpmd.c:300: Debug: initializing TPM emulator
tpm_emulator_extern.c:101: Info: _tpm_extern_init()
tpm_emulator_extern.c:104: Debug: openening random device /dev/urandom
tpm_cmd_handler.c:4113: Debug: tpm_emulator_init(1, 0x00000000)
tpm_data.c:120: Info: initializing TPM data to default values
tpm_startup.c:29: Info: TPM_Init()
tpm_testing.c:243: Info: TPM_SelfTestFull()
tpm_testing.c:39: Debug: tpm_test_prng()
tpm_testing.c:69: Debug: Monobit: 9965
tpm_testing.c:70: Debug: Poker:   17.4
tpm_testing.c:71: Debug: run_1:   2475, 2506
tpm_testing.c:72: Debug: run_2:   1242, 1245
tpm_testing.c:73: Debug: run_3:   619, 595
tpm_testing.c:74: Debug: run_4:   365, 337
tpm_testing.c:75: Debug: run_5:   145, 149
tpm_testing.c:76: Debug: run_6+:  145, 159
tpm_testing.c:77: Debug: run_34:  0
tpm_testing.c:111: Debug: tpm_test_sha1()
tpm_testing.c:157: Debug: tpm_test_hmac()
tpm_testing.c:184: Debug: tpm_test_rsa_EK()
tpm_testing.c:186: Debug: tpm_rsa_generate_key()
tpm_testing.c:191: Debug: testing endorsement key
tpm_testing.c:197: Debug: tpm_rsa_sign(RSA_SSA_PKCS1_SHA1)
tpm_testing.c:200: Debug: tpm_rsa_verify(RSA_SSA_PKCS1_SHA1)
tpm_testing.c:203: Debug: tpm_rsa_sign(RSA_SSA_PKCS1_DER)
tpm_testing.c:206: Debug: tpm_rsa_verify(RSA_SSA_PKCS1_DER)
tpm_testing.c:210: Debug: tpm_rsa_encrypt(RSA_ES_PKCSV15)
tpm_testing.c:214: Debug: tpm_rsa_decrypt(RSA_ES_PKCSV15)
tpm_testing.c:218: Debug: verify plain text
tpm_testing.c:221: Debug: tpm_rsa_encrypt(RSA_ES_OAEP_SHA1)
tpm_testing.c:225: Debug: tpm_rsa_decrypt(RSA_ES_OAEP_SHA1)
tpm_testing.c:229: Debug: verify plain text
tpm_testing.c:261: Info: Self-Test succeeded
tpm_startup.c:43: Info: TPM_Startup(1)
tpmd.c:310: Debug: waiting for connections...
tpmd.c:310: Debug: waiting for connections...
tpmd.c:310: Debug: waiting for connections...
tpmd.c:310: Debug: waiting for connections...
tpmd.c:310: Debug: waiting for connections...
tpmd.c:331: Debug: waiting for commands...
tpmd.c:352: Debug: received 18 bytes
tpm_cmd_handler.c:4143: Debug: tpm_handle_command()
tpm_cmd_handler.c:3450: Debug: [TPM_TAG_RQU_COMMAND]
tpm_cmd_handler.c:3566: Debug: [TPM_ORD_GetCapability]
tpm_capability.c:697: Info: TPM_GetCapability()
tpm_capability.c:778: Debug: [TPM_CAP_VERSION_VAL]
tpm_cmd_handler.c:4084: Info: TPM command succeeded
tpmd.c:358: Debug: sending 29 bytes
tpmd.c:331: Debug: waiting for commands...
tpmd.c:352: Debug: received 22 bytes
tpm_cmd_handler.c:4143: Debug: tpm_handle_command()
tpm_cmd_handler.c:3450: Debug: [TPM_TAG_RQU_COMMAND]
tpm_cmd_handler.c:3566: Debug: [TPM_ORD_GetCapability]
tpm_capability.c:697: Info: TPM_GetCapability()
tpm_capability.c:701: Debug: [TPM_CAP_ORD]
tpm_cmd_handler.c:4084: Info: TPM command succeeded
tpmd.c:358: Debug: sending 15 bytes
tpmd.c:331: Debug: waiting for commands...
tpmd.c:352: Debug: received 22 bytes
tpm_cmd_handler.c:4143: Debug: tpm_handle_command()
tpm_cmd_handler.c:3450: Debug: [TPM_TAG_RQU_COMMAND]
tpm_cmd_handler.c:3566: Debug: [TPM_ORD_GetCapability]
tpm_capability.c:697: Info: TPM_GetCapability()
tpm_capability.c:701: Debug: [TPM_CAP_ORD]
tpm_cmd_handler.c:4084: Info: TPM command succeeded
tpmd.c:358: Debug: sending 15 bytes
tpmd.c:331: Debug: waiting for commands...
tpmd.c:352: Debug: received 22 bytes
tpm_cmd_handler.c:4143: Debug: tpm_handle_command()
tpm_cmd_handler.c:3450: Debug: [TPM_TAG_RQU_COMMAND]
tpm_cmd_handler.c:3566: Debug: [TPM_ORD_GetCapability]
tpm_capability.c:697: Info: TPM_GetCapability()
tpm_capability.c:717: Debug: [TPM_CAP_PROPERTY]
tpm_capability.c:74: Debug: [TPM_CAP_PROP_PCR]
tpm_cmd_handler.c:4084: Info: TPM command succeeded
tpmd.c:358: Debug: sending 18 bytes
tpmd.c:331: Debug: waiting for commands...
tpmd.c:352: Debug: received 22 bytes
tpm_cmd_handler.c:4143: Debug: tpm_handle_command()
tpm_cmd_handler.c:3450: Debug: [TPM_TAG_RQU_COMMAND]
tpm_cmd_handler.c:3566: Debug: [TPM_ORD_GetCapability]
tpm_capability.c:697: Info: TPM_GetCapability()
tpm_capability.c:717: Debug: [TPM_CAP_PROPERTY]
tpm_capability.c:78: Debug: [TPM_CAP_PROP_DIR]
tpm_cmd_handler.c:4084: Info: TPM command succeeded
tpmd.c:358: Debug: sending 18 bytes
tpmd.c:331: Debug: waiting for commands...
tpmd.c:352: Debug: received 22 bytes
tpm_cmd_handler.c:4143: Debug: tpm_handle_command()
tpm_cmd_handler.c:3450: Debug: [TPM_TAG_RQU_COMMAND]
tpm_cmd_handler.c:3566: Debug: [TPM_ORD_GetCapability]
tpm_capability.c:697: Info: TPM_GetCapability()
tpm_capability.c:717: Debug: [TPM_CAP_PROPERTY]
tpm_capability.c:86: Debug: [TPM_CAP_PROP_KEYS]
tpm_cmd_handler.c:4084: Info: TPM command succeeded
tpmd.c:358: Debug: sending 18 bytes
tpmd.c:331: Debug: waiting for commands...
tpmd.c:352: Debug: received 22 bytes
tpm_cmd_handler.c:4143: Debug: tpm_handle_command()
tpm_cmd_handler.c:3450: Debug: [TPM_TAG_RQU_COMMAND]
tpm_cmd_handler.c:3566: Debug: [TPM_ORD_GetCapability]
tpm_capability.c:697: Info: TPM_GetCapability()
tpm_capability.c:717: Debug: [TPM_CAP_PROPERTY]
tpm_capability.c:82: Debug: [TPM_CAP_PROP_MANUFACTURER]
tpm_cmd_handler.c:4084: Info: TPM command succeeded
tpmd.c:358: Debug: sending 18 bytes
tpmd.c:331: Debug: waiting for commands...
tpmd.c:352: Debug: received 22 bytes
tpm_cmd_handler.c:4143: Debug: tpm_handle_command()
tpm_cmd_handler.c:3450: Debug: [TPM_TAG_RQU_COMMAND]
tpm_cmd_handler.c:3566: Debug: [TPM_ORD_GetCapability]
tpm_capability.c:697: Info: TPM_GetCapability()
tpm_capability.c:717: Debug: [TPM_CAP_PROPERTY]
tpm_capability.c:114: Debug: [TPM_CAP_PROP_MAX_AUTHSESS]
tpm_cmd_handler.c:4084: Info: TPM command succeeded
tpmd.c:358: Debug: sending 18 bytes
tpmd.c:331: Debug: waiting for commands...
tpmd.c:352: Debug: received 18 bytes
tpm_cmd_handler.c:4143: Debug: tpm_handle_command()
tpm_cmd_handler.c:3450: Debug: [TPM_TAG_RQU_COMMAND]
tpm_cmd_handler.c:3566: Debug: [TPM_ORD_GetCapability]
tpm_capability.c:697: Info: TPM_GetCapability()
tpm_capability.c:725: Debug: [TPM_CAP_KEY_HANDLE]
tpm_capability.c:319: Debug: [TPM_RT_KEY]
tpm_cmd_handler.c:4084: Info: TPM command succeeded
tpmd.c:358: Debug: sending 16 bytes
tpmd.c:331: Debug: waiting for commands...
tpmd.c:331: Debug: waiting for commands...
tpmd.c:331: Debug: waiting for commands...
tpmd.c:331: Debug: waiting for commands...
tpmd.c:352: Debug: received 18 bytes
tpm_cmd_handler.c:4143: Debug: tpm_handle_command()
tpm_cmd_handler.c:3450: Debug: [TPM_TAG_RQU_COMMAND]
tpm_cmd_handler.c:3566: Debug: [TPM_ORD_GetCapability]
tpm_capability.c:697: Info: TPM_GetCapability()
tpm_capability.c:778: Debug: [TPM_CAP_VERSION_VAL]
tpm_cmd_handler.c:4084: Info: TPM command succeeded
tpmd.c:358: Debug: sending 29 bytes
tpmd.c:331: Debug: waiting for commands...
tpmd.c:352: Debug: received 18 bytes
tpm_cmd_handler.c:4143: Debug: tpm_handle_command()
tpm_cmd_handler.c:3450: Debug: [TPM_TAG_RQU_COMMAND]
tpm_cmd_handler.c:3566: Debug: [TPM_ORD_GetCapability]
tpm_capability.c:697: Info: TPM_GetCapability()
tpm_capability.c:721: Debug: [TPM_CAP_VERSION]
tpm_cmd_handler.c:4084: Info: TPM command succeeded
tpmd.c:358: Debug: sending 18 bytes
tpmd.c:331: Debug: waiting for commands...
tpmd.c:352: Debug: received 22 bytes
tpm_cmd_handler.c:4143: Debug: tpm_handle_command()
tpm_cmd_handler.c:3450: Debug: [TPM_TAG_RQU_COMMAND]
tpm_cmd_handler.c:3566: Debug: [TPM_ORD_GetCapability]
tpm_capability.c:697: Info: TPM_GetCapability()
tpm_capability.c:717: Debug: [TPM_CAP_PROPERTY]
tpm_capability.c:82: Debug: [TPM_CAP_PROP_MANUFACTURER]
tpm_cmd_handler.c:4084: Info: TPM command succeeded
tpmd.c:358: Debug: sending 18 bytes
tpmd.c:331: Debug: waiting for commands...
tpmd.c:331: Debug: waiting for commands...
tpmd.c:331: Debug: waiting for commands...
tpmd.c:352: Debug: received 30 bytes
tpm_cmd_handler.c:4143: Debug: tpm_handle_command()
tpm_cmd_handler.c:3450: Debug: [TPM_TAG_RQU_COMMAND]
tpm_cmd_handler.c:3786: Debug: [TPM_ORD_ReadPubek]
tpm_credentials.c:130: Info: TPM_ReadPubek()
tpm_cmd_handler.c:4084: Info: TPM command succeeded
tpmd.c:358: Debug: sending 314 bytes
tpmd.c:331: Debug: waiting for commands...
tpmd.c:331: Debug: waiting for commands...
tpmd.c:352: Debug: received 30 bytes
tpm_cmd_handler.c:4143: Debug: tpm_handle_command()
tpm_cmd_handler.c:3450: Debug: [TPM_TAG_RQU_COMMAND]
tpm_cmd_handler.c:3786: Debug: [TPM_ORD_ReadPubek]
tpm_credentials.c:130: Info: TPM_ReadPubek()
tpm_cmd_handler.c:4084: Info: TPM command succeeded
tpmd.c:358: Debug: sending 314 bytes
tpmd.c:331: Debug: waiting for commands...
tpmd.c:352: Debug: received 10 bytes
tpm_cmd_handler.c:4143: Debug: tpm_handle_command()
tpm_cmd_handler.c:3450: Debug: [TPM_TAG_RQU_COMMAND]
tpm_cmd_handler.c:3846: Debug: [TPM_ORD_OIAP]
tpm_authorization.c:156: Info: TPM_OIAP()
tpm_authorization.c:164: Debug: handle = 02000000
tpm_cmd_handler.c:4084: Info: TPM command succeeded
tpmd.c:358: Debug: sending 34 bytes
tpmd.c:331: Debug: waiting for commands...
tpmd.c:352: Debug: received 624 bytes
tpm_cmd_handler.c:4143: Debug: tpm_handle_command()
tpm_cmd_handler.c:3443: Debug: [TPM_TAG_RQU_AUTH1_COMMAND]
tpm_cmd_handler.c:3533: Debug: [TPM_ORD_TakeOwnership]
tpm_owner.c:112: Info: TPM_TakeOwnership()
tpm_authorization.c:526: Info: tpm_verify_auth()
tpm_authorization.c:527: Debug: handle = 02000000
tpm_authorization.c:534: Debug: [TPM_ST_OIAP]
tpm_owner.c:152: Debug: srk->authDataUsage = 01
tpm_cmd_handler.c:4084: Info: TPM command succeeded
tpm_eviction.c:51: Info: TPM_FlushSpecific()
tpm_eviction.c:52: Debug: handle = 02000000, resourceType = 00000002
tpmd.c:358: Debug: sending 354 bytes
tpmd.c:331: Debug: waiting for commands...
tpmd.c:352: Debug: received 18 bytes
tpm_cmd_handler.c:4143: Debug: tpm_handle_command()
tpm_cmd_handler.c:3450: Debug: [TPM_TAG_RQU_COMMAND]
tpm_cmd_handler.c:3941: Debug: [TPM_ORD_FlushSpecific]
tpm_eviction.c:51: Info: TPM_FlushSpecific()
tpm_eviction.c:52: Debug: handle = 02000000, resourceType = 00000002
tpm_cmd_handler.c:4084: Info: TPM command succeeded
tpmd.c:358: Debug: sending 10 bytes
tpmd.c:331: Debug: waiting for commands...
tpmd.c:331: Debug: waiting for commands...


期间TCSD的输出:

TCSD TDDL ioctl: (25) Inappropriate ioctl for device
TCSD TDDL Falling back to Read/Write device support.
TCSD trousers 0.3.8: TCSD up and running.
TCSD TCS Unloading a public key of size 0!


/***********************************************************TPM-EMULATOR******END**********************************************************************************/



Ubuntu 12 下构建模拟TPM环境,布布扣,bubuko.com

Ubuntu 12 下构建模拟TPM环境

原文:http://blog.csdn.net/xujianqun/article/details/22720613

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!