Home
last modified time | relevance | path

Searched refs:pcr_selections (Results 1 – 7 of 7) sorted by relevance

/system/tpm/trunks/
Dpolicy_session_impl.cc125 pcr_select.pcr_selections[0].hash = TPM_ALG_SHA256; in PolicyPCR()
126 pcr_select.pcr_selections[0].sizeof_select = PCR_SELECT_MIN; in PolicyPCR()
127 pcr_select.pcr_selections[0].pcr_select[pcr_select_index] = pcr_select_byte; in PolicyPCR()
Dpolicy_session_test.cc171 EXPECT_EQ(pcr_select.pcr_selections[0].hash, TPM_ALG_SHA256); in TEST_F()
172 EXPECT_EQ(pcr_select.pcr_selections[0].sizeof_select, PCR_SELECT_MIN); in TEST_F()
173 EXPECT_EQ(pcr_select.pcr_selections[0].pcr_select[pcr_select_index], in TEST_F()
Dtpm_utility_impl.cc197 if (existing_pcrs.pcr_selections[i].hash == TPM_ALG_SHA256) { in AllocatePCR()
200 pcr_banks_to_remove.push_back(existing_pcrs.pcr_selections[i].hash); in AllocatePCR()
209 pcr_allocation.pcr_selections[pcr_allocation.count].hash = TPM_ALG_SHA256; in AllocatePCR()
210 pcr_allocation.pcr_selections[pcr_allocation.count].sizeof_select = in AllocatePCR()
213 pcr_allocation.pcr_selections[pcr_allocation.count].pcr_select[i] = 0xff; in AllocatePCR()
218 pcr_allocation.pcr_selections[pcr_allocation.count].hash = pcr_type; in AllocatePCR()
219 pcr_allocation.pcr_selections[pcr_allocation.count].sizeof_select = in AllocatePCR()
382 pcr_select_in.pcr_selections[0].hash = TPM_ALG_SHA256; in ReadPCR()
383 pcr_select_in.pcr_selections[0].sizeof_select = PCR_SELECT_MIN; in ReadPCR()
384 pcr_select_in.pcr_selections[0].pcr_select[pcr_select_index] = in ReadPCR()
[all …]
Dtpm_generated_test.cc45 data.creation_data.pcr_select.pcr_selections[0].hash = TPM_ALG_SHA256; in TEST()
46 data.creation_data.pcr_select.pcr_selections[0].sizeof_select = 1; in TEST()
47 data.creation_data.pcr_select.pcr_selections[0].pcr_select[0] = 0; in TEST()
Dtpm_utility_test.cc108 pcrs->pcr_selections[pcrs->count].hash = TPM_ALG_SHA256; in PopulatePCRSelection()
109 pcrs->pcr_selections[pcrs->count].sizeof_select = PCR_SELECT_MIN; in PopulatePCRSelection()
111 pcrs->pcr_selections[pcrs->count].pcr_select[i] = 0xff; in PopulatePCRSelection()
116 pcrs->pcr_selections[pcrs->count].hash = TPM_ALG_SHA1; in PopulatePCRSelection()
118 pcrs->pcr_selections[pcrs->count].sizeof_select = PCR_SELECT_MAX; in PopulatePCRSelection()
120 pcrs->pcr_selections[pcrs->count].sizeof_select = PCR_SELECT_MIN; in PopulatePCRSelection()
122 pcrs->pcr_selections[pcrs->count].pcr_select[i] = 0xff; in PopulatePCRSelection()
461 pcr_select.pcr_selections[0].hash = TPM_ALG_SHA256; in TEST_F()
462 pcr_select.pcr_selections[0].sizeof_select = 1; in TEST_F()
463 pcr_select.pcr_selections[0].pcr_select[0] = 2; in TEST_F()
[all …]
Dtpm_generated.h1097 TPMS_PCR_SELECTION pcr_selections[HASH_COUNT]; member
Dtpm_generated.cc3852 if (arraysize(value.pcr_selections) < value.count) { in Serialize_TPML_PCR_SELECTION()
3856 result = Serialize_TPMS_PCR_SELECTION(value.pcr_selections[i], buffer); in Serialize_TPML_PCR_SELECTION()
3879 if (arraysize(value->pcr_selections) < value->count) { in Parse_TPML_PCR_SELECTION()
3885 &value->pcr_selections[i], in Parse_TPML_PCR_SELECTION()