Home
last modified time | relevance | path

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

/system/tpm/trunks/
Dpolicy_session_impl.cc121 pcr_select.pcr_selections[0].hash = TPM_ALG_SHA256; in PolicyPCR()
122 pcr_select.pcr_selections[0].sizeof_select = PCR_SELECT_MIN; in PolicyPCR()
123 pcr_select.pcr_selections[0].pcr_select[pcr_select_index] = pcr_select_byte; in PolicyPCR()
Dpolicy_session_test.cc168 EXPECT_EQ(pcr_select.pcr_selections[0].hash, TPM_ALG_SHA256); in TEST_F()
169 EXPECT_EQ(pcr_select.pcr_selections[0].sizeof_select, PCR_SELECT_MIN); in TEST_F()
170 EXPECT_EQ(pcr_select.pcr_selections[0].pcr_select[pcr_select_index], in TEST_F()
Dtpm_utility_impl.cc200 if (existing_pcrs.pcr_selections[i].hash == TPM_ALG_SHA256) { in AllocatePCR()
203 pcr_banks_to_remove.push_back(existing_pcrs.pcr_selections[i].hash); in AllocatePCR()
212 pcr_allocation.pcr_selections[pcr_allocation.count].hash = TPM_ALG_SHA256; in AllocatePCR()
213 pcr_allocation.pcr_selections[pcr_allocation.count].sizeof_select = in AllocatePCR()
216 pcr_allocation.pcr_selections[pcr_allocation.count].pcr_select[i] = 0xff; in AllocatePCR()
221 pcr_allocation.pcr_selections[pcr_allocation.count].hash = pcr_type; in AllocatePCR()
222 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.cc106 pcrs->pcr_selections[pcrs->count].hash = TPM_ALG_SHA256; in PopulatePCRSelection()
107 pcrs->pcr_selections[pcrs->count].sizeof_select = PCR_SELECT_MIN; in PopulatePCRSelection()
109 pcrs->pcr_selections[pcrs->count].pcr_select[i] = 0xff; in PopulatePCRSelection()
114 pcrs->pcr_selections[pcrs->count].hash = TPM_ALG_SHA1; in PopulatePCRSelection()
116 pcrs->pcr_selections[pcrs->count].sizeof_select = PCR_SELECT_MAX; in PopulatePCRSelection()
118 pcrs->pcr_selections[pcrs->count].sizeof_select = PCR_SELECT_MIN; in PopulatePCRSelection()
120 pcrs->pcr_selections[pcrs->count].pcr_select[i] = 0xff; in PopulatePCRSelection()
442 pcr_select.pcr_selections[0].hash = TPM_ALG_SHA256; in TEST_F()
443 pcr_select.pcr_selections[0].sizeof_select = 1; in TEST_F()
444 pcr_select.pcr_selections[0].pcr_select[0] = 2; in TEST_F()
[all …]
Dtpm_generated.h1130 TPMS_PCR_SELECTION pcr_selections[HASH_COUNT]; member
Dtpm_generated.cc3537 if (arraysize(value.pcr_selections) < value.count) { in Serialize_TPML_PCR_SELECTION()
3541 result = Serialize_TPMS_PCR_SELECTION(value.pcr_selections[i], buffer); in Serialize_TPML_PCR_SELECTION()
3560 if (arraysize(value->pcr_selections) < value->count) { in Parse_TPML_PCR_SELECTION()
3564 result = Parse_TPMS_PCR_SELECTION(buffer, &value->pcr_selections[i], in Parse_TPML_PCR_SELECTION()