Searched refs:pcr_select (Results 1 – 7 of 7) sorted by relevance
/system/tpm/trunks/ |
D | policy_session_impl.cc | 114 TPML_PCR_SELECTION pcr_select; in PolicyPCR() local 115 memset(&pcr_select, 0, sizeof(TPML_PCR_SELECTION)); in PolicyPCR() 120 pcr_select.count = 1; in PolicyPCR() 121 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() 138 pcr_digest, pcr_select, nullptr); in PolicyPCR()
|
D | policy_session_test.cc | 159 TPML_PCR_SELECTION pcr_select; in TEST_F() local 162 .WillOnce(DoAll(SaveArg<2>(&pcr_value), SaveArg<3>(&pcr_select), in TEST_F() 167 EXPECT_EQ(pcr_select.count, 1u); in TEST_F() 168 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()
|
D | tpm_generated_test.cc | 44 data.creation_data.pcr_select.count = 1; in TEST() 45 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() 162 std::string pcr_select("\x00\x00\x00\x00", 4); // pcr_select.size = 0 in TEST() local 201 sensitive + public_data + outside + pcr_select; in TEST()
|
D | tpm_utility_test.cc | 109 pcrs->pcr_selections[pcrs->count].pcr_select[i] = 0xff; in PopulatePCRSelection() 120 pcrs->pcr_selections[pcrs->count].pcr_select[i] = 0xff; in PopulatePCRSelection() 440 TPML_PCR_SELECTION pcr_select; in TEST_F() local 441 pcr_select.count = 1; in TEST_F() 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() 449 .WillOnce(DoAll(SetArgPointee<2>(pcr_select), in TEST_F() 1258 creation_pcrs.pcr_selections[0].pcr_select[creation_pcr / 8]); in TEST_F() 1519 TPML_PCR_SELECTION pcr_select; in TEST_F() local [all …]
|
D | tpm_utility_impl.cc | 216 pcr_allocation.pcr_selections[pcr_allocation.count].pcr_select[i] = 0xff; in AllocatePCR() 384 pcr_select_in.pcr_selections[0].pcr_select[pcr_select_index] = in ReadPCR() 397 pcr_select_out.pcr_selections[0].pcr_select[pcr_select_index] != in ReadPCR() 887 creation_pcrs.pcr_selections[0].pcr_select[creation_pcr_index / 8] = in CreateRSAKeyPair()
|
D | tpm_generated.h | 1045 BYTE pcr_select[PCR_SELECT_MAX]; member 1051 BYTE pcr_select[PCR_SELECT_MAX]; member 1090 BYTE pcr_select[PCR_SELECT_MAX]; member 1193 TPML_PCR_SELECTION pcr_select; member 1641 TPML_PCR_SELECTION pcr_select; member
|
D | tpm_generated.cc | 2819 if (arraysize(value.pcr_select) < value.sizeof_select) { in Serialize_TPMS_PCR_SELECT() 2823 result = Serialize_BYTE(value.pcr_select[i], buffer); in Serialize_TPMS_PCR_SELECT() 2842 if (arraysize(value->pcr_select) < value->sizeof_select) { in Parse_TPMS_PCR_SELECT() 2846 result = Parse_BYTE(buffer, &value->pcr_select[i], value_bytes); in Parse_TPMS_PCR_SELECT() 2869 if (arraysize(value.pcr_select) < value.sizeof_select) { in Serialize_TPMS_PCR_SELECTION() 2873 result = Serialize_BYTE(value.pcr_select[i], buffer); in Serialize_TPMS_PCR_SELECTION() 2897 if (arraysize(value->pcr_select) < value->sizeof_select) { in Parse_TPMS_PCR_SELECTION() 2901 result = Parse_BYTE(buffer, &value->pcr_select[i], value_bytes); in Parse_TPMS_PCR_SELECTION() 3163 if (arraysize(value.pcr_select) < value.sizeof_select) { in Serialize_TPMS_TAGGED_PCR_SELECT() 3167 result = Serialize_BYTE(value.pcr_select[i], buffer); in Serialize_TPMS_TAGGED_PCR_SELECT() [all …]
|