Home
last modified time | relevance | path

Searched refs:TPM_CHECK (Results 1 – 12 of 12) sorted by relevance

/external/u-boot/cmd/
Dtpm_test.c12 #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/
Dtpmtest_globallock.c22 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 …]
Dtpmtest_redefine_unowned.c22 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 …]
Dtpmtest_writelimit.c26 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()
Dtpmtest_fastenable.c26 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()
Dtpmtest_testsetup.c24 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()
Dtpmtest_enable.c20 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()
Dtpmtest_spaceperm.c24 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()
Dtpmtest_earlynvram2.c21 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()
Dtpmtest_earlynvram.c23 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()
Dtpmtest_earlyextend.c21 TPM_CHECK(TlclStartup()); in main()
22 TPM_CHECK(TlclContinueSelfTest()); in main()
23 TPM_CHECK(TlclExtend(1, value_in, value_out)); in main()
Dtlcl_tests.h17 #define TPM_CHECK(tpm_command) TPM_EXPECT(tpm_command, TPM_SUCCESS) macro