Home
last modified time | relevance | path

Searched refs:sizeofSelect (Results 1 – 20 of 20) sorted by relevance

/external/tpm2-tss/test/unit/
DTPML-marshal.c47 sel.pcrSelections[0].sizeofSelect = 3; in tpml_marshal_success()
52 sel.pcrSelections[1].sizeofSelect = 2; in tpml_marshal_success()
100 sel.pcrSelections[0].sizeofSelect = 3; in tpml_marshal_success_offset()
105 sel.pcrSelections[1].sizeofSelect = 2; in tpml_marshal_success_offset()
150 sel.pcrSelections[0].sizeofSelect = 3; in tpml_marshal_buffer_null_with_offset()
155 sel.pcrSelections[1].sizeofSelect = 2; in tpml_marshal_buffer_null_with_offset()
226 sel.pcrSelections[0].sizeofSelect = 3; in tpml_marshal_buffer_size_lt_data_nad_lt_offset()
231 sel.pcrSelections[1].sizeofSelect = 2; in tpml_marshal_buffer_size_lt_data_nad_lt_offset()
263 sel.pcrSelections[0].sizeofSelect = 3; in tpml_marshal_invalid_count()
268 sel.pcrSelections[1].sizeofSelect = 2; in tpml_marshal_invalid_count()
[all …]
Dfapi-json.c332 .sizeofSelect = 3, in check_bin()
336 .sizeofSelect = 3, in check_bin()
340 .sizeofSelect = 3, in check_bin()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/subsystem/
DPCR.c258 gp.pcrAllocated.pcrSelections[gp.pcrAllocated.count].sizeofSelect in PCRSimStart()
401 for(i = selection->sizeofSelect; i < PCR_SELECT_MAX; i++) in FilterPcr()
414 for(i = 0; i < selection->sizeofSelect; i++) in FilterPcr()
828 && (pcr / 8) < select->sizeofSelect) in PCRRead()
858 selection->pcrSelections[i].sizeofSelect); in PCRRead()
933 newAllocate.pcrSelections[i].sizeofSelect); in PCRAllocate()
943 newAllocate.pcrSelections[i].sizeofSelect); in PCRAllocate()
947 for(j = 0; j < newAllocate.pcrSelections[i].sizeofSelect; j++) in PCRAllocate()
1108 select->sizeofSelect = (IMPLEMENTATION_PCR + 7) / 8; in PCRGetProperty()
1111 MemorySet(select->pcrSelect, 0, select->sizeofSelect); in PCRGetProperty()
/external/tpm2-tss/test/integration/
Desys-pcr-basic.int.c77 .sizeofSelect = 3, in test_esys_pcr_basic()
81 .sizeofSelect = 3, in test_esys_pcr_basic()
Desys-quote.int.c157 .sizeofSelect = 3, in test_esys_quote()
161 .sizeofSelect = 3, in test_esys_quote()
Dsapi-pcr-extension.int.c69 pcr_selection.pcrSelections[0].sizeofSelect = 3; in test_invoke()
Desys-policy-regression.int.c131 .sizeofSelect = 3, in test_esys_policy_regression()
/external/tpm2-tss/src/tss2-fapi/
Difapi_helpers.c2070 if (pcr_profile->pcrSelections[i].sizeofSelect > in ifapi_check_profile_pcr_selection()
2071 pcr_capablity->pcrSelections[j].sizeofSelect) { in ifapi_check_profile_pcr_selection()
2076 k < pcr_profile->pcrSelections[i].sizeofSelect; in ifapi_check_profile_pcr_selection()
2127 if (pcr_selection->pcrSelections[bank].sizeofSelect > 4) { in ifapi_filter_pcr_selection_by_index()
2129 pcr_selection->pcrSelections[bank].sizeofSelect); in ifapi_filter_pcr_selection_by_index()
2132 for (select = 0; select < pcr_selection->pcrSelections[bank].sizeofSelect; select++) { in ifapi_filter_pcr_selection_by_index()
2139 for (select = 0; select < pcr_selection->pcrSelections[bank].sizeofSelect; select++) { in ifapi_filter_pcr_selection_by_index()
2143 if (select < pcr_selection->pcrSelections[bank].sizeofSelect) { in ifapi_filter_pcr_selection_by_index()
2220 if ((pcrIndex / 8) + 1 > pcr_selection->pcrSelections[j].sizeofSelect) in ifapi_compute_policy_digest()
2221 pcr_selection->pcrSelections[j].sizeofSelect = (pcrIndex / 8) + 1; in ifapi_compute_policy_digest()
Difapi_policy_callbacks.c301 if (pcr_select->sizeofSelect) { in ifapi_read_pcr()
327 pcr_selection->pcrSelections[0].sizeofSelect = pcr_select->sizeofSelect; in ifapi_read_pcr()
328 for (i = 0; i < pcr_select->sizeofSelect; i++) in ifapi_read_pcr()
Dtpm_json_deserialize.c267 UINT8 *sizeofSelect, in ifapi_json_pcr_selection_deserialize() argument
286 if (n_byte > *sizeofSelect) in ifapi_json_pcr_selection_deserialize()
287 *sizeofSelect = n_byte; in ifapi_json_pcr_selection_deserialize()
289 *sizeofSelect = 3; in ifapi_json_pcr_selection_deserialize()
332 return ifapi_json_pcr_selection_deserialize(jso, &out->sizeofSelect, in ifapi_json_TPMS_PCR_SELECT_deserialize()
363 return ifapi_json_pcr_selection_deserialize(jso2, &out->sizeofSelect, in ifapi_json_TPMS_PCR_SELECTION_deserialize()
Difapi_policy_instantiate.c255 pol_element->element.PolicyPCR.currentPCRs.sizeofSelect = 0; in ifapi_policyeval_instantiate_finish()
Dtpm_json_serialize.c54 const UINT8 sizeofSelect, in ifapi_json_pcr_select_serialize() argument
62 if (sizeofSelect > TPM2_PCR_SELECT_MAX) { in ifapi_json_pcr_select_serialize()
64 (size_t)sizeofSelect, (size_t)TPM2_PCR_SELECT_MAX); in ifapi_json_pcr_select_serialize()
94 r = ifapi_json_pcr_select_serialize(in->sizeofSelect, &in->pcrSelect[0], jso); in ifapi_json_TPMS_PCR_SELECT_serialize()
124 r = ifapi_json_pcr_select_serialize(in->sizeofSelect, &in->pcrSelect[0], &jso2); in ifapi_json_TPMS_PCR_SELECTION_serialize()
152 r = ifapi_json_pcr_select_serialize(in->sizeofSelect, &in->pcrSelect[0], &jso2); in ifapi_json_TPMS_TAGGED_PCR_SELECT_serialize()
Difapi_policy_json_serialize.c993 if (in->currentPCRs.sizeofSelect) { in ifapi_json_TPMS_POLICYPCR_serialize()
/external/tpm2-tss/src/tss2-mu/
Dtpms-types.c50 if (src->sizeofSelect > TAB_SIZE(src->pcrSelect)) { \
51 LOG_ERROR("sizeofSelect value %"PRIu8"/%zi too big", src->sizeofSelect, \
60 ret = Tss2_MU_UINT8_Marshal(src->sizeofSelect, buffer, buffer_size, &local_offset); \
64 for (i = 0; i < src->sizeofSelect; i++) { \
114 dest? &dest->sizeofSelect : &tmp); \
118 if ((dest? dest->sizeofSelect : tmp) > TAB_SIZE(dest->pcrSelect)) { \
120 dest? dest->sizeofSelect : tmp, TAB_SIZE(dest->pcrSelect)); \
124 for (i = 0; i < (dest? dest->sizeofSelect : tmp); i++) \
/external/tpm2-tss/include/tss2/
Dtss2_tpm2_types.h946 UINT8 sizeofSelect; /* the size in octets of the pcrSelect array */ member
953 UINT8 sizeofSelect; /* the size in octets of the pcrSelect array */ member
1000 UINT8 sizeofSelect; /* the size in octets of the pcrSelect array */ member
/external/ms-tpm-20-ref/TPMCmd/tpm/src/support/
DMarshal.c2264 result = UINT8_Unmarshal((UINT8 *)&(target->sizeofSelect), buffer, size); in TPMS_PCR_SELECT_Unmarshal()
2266 && (target->sizeofSelect < PCR_SELECT_MIN)) in TPMS_PCR_SELECT_Unmarshal()
2270 if((target->sizeofSelect) > PCR_SELECT_MAX) in TPMS_PCR_SELECT_Unmarshal()
2273 …t = BYTE_Array_Unmarshal((BYTE *)(target->pcrSelect), buffer, size, (INT32)(target->sizeofSelect)); in TPMS_PCR_SELECT_Unmarshal()
2281 result = (UINT16)(result + UINT8_Marshal((UINT8 *)&(source->sizeofSelect), buffer, size)); in TPMS_PCR_SELECT_Marshal()
2282 …lt + BYTE_Array_Marshal((BYTE *)(source->pcrSelect), buffer, size, (INT32)(source->sizeofSelect))); in TPMS_PCR_SELECT_Marshal()
2293 result = UINT8_Unmarshal((UINT8 *)&(target->sizeofSelect), buffer, size); in TPMS_PCR_SELECTION_Unmarshal()
2295 && (target->sizeofSelect < PCR_SELECT_MIN)) in TPMS_PCR_SELECTION_Unmarshal()
2299 if((target->sizeofSelect) > PCR_SELECT_MAX) in TPMS_PCR_SELECTION_Unmarshal()
2302 …t = BYTE_Array_Unmarshal((BYTE *)(target->pcrSelect), buffer, size, (INT32)(target->sizeofSelect)); in TPMS_PCR_SELECTION_Unmarshal()
[all …]
DTableMarshalData.c335 (UINT16)(offsetof(TPMS_PCR_SELECT, sizeofSelect)),
346 (UINT16)(offsetof(TPMS_PCR_SELECTION, sizeofSelect)),
417 (UINT16)(offsetof(TPMS_TAGGED_PCR_SELECT, sizeofSelect)),
/external/tpm2-tss/test/tpmclient/
Dtpmclient.int.c55 (pcrSelection).sizeofSelect = size;
561 pcrSelection.pcrSelections[0].sizeofSelect = 3; in TestPcrExtend()
605 pcrSelection.pcrSelections[0].sizeofSelect = 255; in TestPcrExtend()
1413 pcrSelection.pcrSelections[0].sizeofSelect = 3; in TestQuote()
/external/ms-tpm-20-ref/TPMCmd/tpm/include/
DTpmTypes.h1419 UINT8 sizeofSelect; member
1425 UINT8 sizeofSelect; member
1465 UINT8 sizeofSelect; member
/external/tpm2-tss/doc/
Ddoxygen.dox2727 const UINT8 sizeofSelect,
3048 UINT8 *sizeofSelect,