TSS示例程序
TSS示例程序
提纲 ■TPM模拟环境搭建 ■TSS编程实例 ■有关PCR的操作(READ、EXTEND) ■HASH操作 ■文件加解密操作 ■远程证明
◼TPM模拟环境搭建 ◼TSS编程实例 ◼ 有关PCR的操作(READ、EXTEND) ◼ HASH操作 ◼ 文件加解密操作 ◼ 远程证明 提纲
TPM模拟环境的搭建 ■准备工作: "1.Linux操作系统,内核版本在2.6.30以上 "2.Tpm_emulator软件 ■3.TSS软件栈 以上软件安装完毕后,执行以下3个操作
TPM模拟环境的搭建 ◼ 准备工作: ◼ 1. Linux操作系统,内核版本在2.6.30以上 ◼ 2. Tpm_emulator软件 ◼ 3. TSS软件栈 ◼ 以上软件安装完毕后,执行以下3个操作
TPM模拟环境的搭建 (1)启动Tpm emulator:打开一个新的 终端,在终端中输入命令: .#modprobe tpmd_dev #rm /var/run/tpm/tpmd_socket:0 .#tpmd -fd
TPM模拟环境的搭建 ◼ (1)启动Tpm_emulator:打开一个新的 终端,在终端中输入命令: ◼ #modprobe tpmd_dev ◼ #rm /var/run/tpm/tpmd_socket:0 ◼ #tpmd –fd
TPM Emulator启动成功 OpenSLIGE 回终端显 回▣区 文件)编辑) 查看)终端T) 标签T) 帮助0) ../tpm/tpm_testing.c:73:Debug:run_4: 329,306 ../tpm/tpm_testing.c:74:Debug:run_5: 171,143 ../tpm/tpm_testing.c:75:Debug:run_6+: 160,155 ../tpm/tpm_testing.c:76:Debug:run_34: 0 ../tpm/tpm_testing.c:110:Debug:tpm_test_sha1() ../tpm/tpm_testing.c:156:Debug:tpm_test_hmac() ../tpm/tpm_testing.c:183:Debug:tpm_test_rsa_EK() raot ../tpm/tpm_testing.c:185:Debug:tpm_rsa_generate_key() ../tpm/tpm_testing.c:190:Debug:testing endorsement key ../tpm/tpm_testing.c:196:Debug:tpm_rsa_sign(RSA_SSA_PKCS1_SHA1) ../tpm/tpm_testing.c:199:Debug:tpm_rsa_verify(RSA_SSA_PKCS1_SHA1) ../tpm/tpm_testing.c:202:Debug:tpm_rsa_sign(RSA_SSA_PKCS1_DER) ../tpm/tpm_testing.c:205:Debug:tpm_rsa_verify(RSA_SSA_PKCS1_DER) ../tpm/tpm_testing.c:209:Debug:tpm_rsa_encrypt (RSA_ES_PKCSV15) ./tpm/tpm_testing.c:213:Debug:tpm_rsa_decrypt (RSA_ES_PKCSV15) ../tpm/tpm_testing.c:217:Debug:verify plain text ../tpm/tpm_testing.c:220:Debug:tpm_rsa_encrypt (RSA_ES_OAEP_SHA1) ../tpm/tpm_testing.c:224:Debug:tpm_rsa_decrypt (RSA_ES_OAEP_SHA1) ./tpm/tpm_testing.c:228:Debug:verify plain text ../tpm/tpm_testing.c:260:Info:Self-Test succeeded ../tpm/tpm_startup.c:44:Info:TPM_Startup(2) tpmd.c:372:Debug:waiting for connections... tpmd.c:372:Debug:waiting for connections
TPM_Emulator启动成功