/external/u-boot/cmd/ |
D | tpm_test.c | 12 #define TPM_CHECK(tpm_command) do { \ macro 104 TPM_CHECK(tpm_startup(TPM_ST_CLEAR)); in test_early_extend() 105 TPM_CHECK(tpm_continue_self_test()); in test_early_extend() 106 TPM_CHECK(tpm_extend(1, value_in, value_out)); in test_early_extend() 117 TPM_CHECK(tpm_startup(TPM_ST_CLEAR)); in test_early_nvram() 118 TPM_CHECK(tpm_continue_self_test()); in test_early_nvram() 119 TPM_CHECK(tpm_tsc_physical_presence(PRESENCE)); in test_early_nvram() 120 TPM_CHECK(tpm_nv_read_value(INDEX0, (uint8_t *)&x, sizeof(x))); in test_early_nvram() 131 TPM_CHECK(tpm_startup(TPM_ST_CLEAR)); in test_early_nvram2() 132 TPM_CHECK(tpm_continue_self_test()); in test_early_nvram2() [all …]
|
/external/vboot_reference/tests/tpm_lite/ |
D | tpmtest_globallock.c | 22 TPM_CHECK(TlclStartupIfNeeded()); in main() 23 TPM_CHECK(TlclSelfTestFull()); in main() 24 TPM_CHECK(TlclAssertPhysicalPresence()); in main() 25 TPM_CHECK(TlclRead(INDEX0, (uint8_t*) &x, sizeof(x))); in main() 26 TPM_CHECK(TlclWrite(INDEX0, (uint8_t*) &zero, sizeof(uint32_t))); in main() 27 TPM_CHECK(TlclRead(INDEX1, (uint8_t*) &x, sizeof(x))); in main() 28 TPM_CHECK(TlclWrite(INDEX1, (uint8_t*) &zero, sizeof(uint32_t))); in main() 29 TPM_CHECK(TlclSetGlobalLock()); in main() 34 TPM_CHECK(TlclRead(INDEX0, (uint8_t*) &x, sizeof(x))); in main() 39 TPM_CHECK(TlclWrite(INDEX1, (uint8_t*) &x, sizeof(x))); in main() [all …]
|
D | tpmtest_redefine_unowned.c | 22 TPM_CHECK(TlclStartupIfNeeded()); in main() 23 TPM_CHECK(TlclSelfTestFull()); in main() 24 TPM_CHECK(TlclAssertPhysicalPresence()); in main() 29 TPM_CHECK(TlclRead(INDEX0, (uint8_t*) &x, sizeof(x))); in main() 30 TPM_CHECK(TlclRead(INDEX1, (uint8_t*) &x, sizeof(x))); in main() 34 TPM_CHECK(TlclDefineSpace(INDEX0, perm, 2 * sizeof(uint32_t))); in main() 35 TPM_CHECK(TlclDefineSpace(INDEX0, perm, sizeof(uint32_t))); in main() 38 TPM_CHECK(TlclDefineSpace(INDEX1, perm, 2 * sizeof(uint32_t))); in main() 39 TPM_CHECK(TlclDefineSpace(INDEX1, perm, sizeof(uint32_t))); in main() 49 TPM_CHECK(TlclDefineSpace(INDEX1, perm, 2 * sizeof(uint32_t))); in main() [all …]
|
D | tpmtest_writelimit.c | 26 TPM_CHECK(TlclStartupIfNeeded()); in main() 27 TPM_CHECK(TlclSelfTestFull()); in main() 28 TPM_CHECK(TlclAssertPhysicalPresence()); in main() 29 TPM_CHECK(TlclForceClear()); in main() 30 TPM_CHECK(TlclSetEnable()); in main() 31 TPM_CHECK(TlclSetDeactivated(0)); in main() 47 TPM_CHECK(TlclForceClear()); in main() 48 TPM_CHECK(TlclSetEnable()); in main() 49 TPM_CHECK(TlclSetDeactivated(0)); in main() 52 TPM_CHECK(TlclWrite(INDEX0, (uint8_t*)&i, sizeof(i))); in main()
|
D | tpmtest_fastenable.c | 26 TPM_CHECK(TlclStartupIfNeeded()); in main() 27 TPM_CHECK(TlclSelfTestFull()); in main() 28 TPM_CHECK(TlclAssertPhysicalPresence()); in main() 29 TPM_CHECK(TlclGetFlags(&disable, &deactivated, NULL)); in main() 33 TPM_CHECK(TlclForceClear()); in main() 34 TPM_CHECK(TlclGetFlags(&disable, &deactivated, NULL)); in main() 37 TPM_CHECK(TlclSetEnable()); in main() 38 TPM_CHECK(TlclSetDeactivated(0)); in main() 39 TPM_CHECK(TlclGetFlags(&disable, &deactivated, NULL)); in main()
|
D | tpmtest_testsetup.c | 24 TPM_CHECK(TlclStartupIfNeeded()); in main() 25 TPM_CHECK(TlclSelfTestFull()); in main() 26 TPM_CHECK(TlclAssertPhysicalPresence()); in main() 27 TPM_CHECK(TlclForceClear()); in main() 28 TPM_CHECK(TlclSetEnable()); in main() 29 TPM_CHECK(TlclSetDeactivated(0)); in main() 34 TPM_CHECK(TlclDefineSpace(INDEX0, perm, sizeof(uint32_t))); in main() 40 TPM_CHECK(TlclDefineSpace(INDEX1, perm, sizeof(uint32_t))); in main()
|
D | tpmtest_enable.c | 20 TPM_CHECK(TlclStartupIfNeeded()); in main() 21 TPM_CHECK(TlclSelfTestFull()); in main() 22 TPM_CHECK(TlclAssertPhysicalPresence()); in main() 23 TPM_CHECK(TlclGetFlags(&disable, &deactivated, NULL)); in main() 25 TPM_CHECK(TlclSetEnable()); in main() 26 TPM_CHECK(TlclSetDeactivated(0)); in main() 27 TPM_CHECK(TlclGetFlags(&disable, &deactivated, NULL)); in main()
|
D | tpmtest_spaceperm.c | 24 TPM_CHECK(TlclStartupIfNeeded()); in main() 25 TPM_CHECK(TlclContinueSelfTest()); in main() 26 TPM_CHECK(TlclAssertPhysicalPresence()); in main() 28 TPM_CHECK(TlclGetPermissions(INDEX0, &perm)); in main() 31 TPM_CHECK(TlclGetPermissions(INDEX1, &perm)); in main()
|
D | tpmtest_earlynvram2.c | 21 TPM_CHECK(TlclStartup()); in main() 22 TPM_CHECK(TlclContinueSelfTest()); in main() 23 TPM_CHECK(TlclAssertPhysicalPresence()); in main() 24 TPM_CHECK(TlclWrite(INDEX0, (uint8_t*) &x, sizeof(x))); in main()
|
D | tpmtest_earlynvram.c | 23 TPM_CHECK(TlclStartup()); in main() 24 TPM_CHECK(TlclContinueSelfTest()); in main() 25 TPM_CHECK(TlclAssertPhysicalPresence()); in main() 26 TPM_CHECK(TlclRead(INDEX0, (uint8_t*) &x, sizeof(x))); in main()
|
D | tpmtest_earlyextend.c | 21 TPM_CHECK(TlclStartup()); in main() 22 TPM_CHECK(TlclContinueSelfTest()); in main() 23 TPM_CHECK(TlclExtend(1, value_in, value_out)); in main()
|
D | tlcl_tests.h | 17 #define TPM_CHECK(tpm_command) TPM_EXPECT(tpm_command, TPM_SUCCESS) macro
|