Lines Matching refs:pcrs
1104 struct tpml_pcr_selection pcrs; in tpm2_get_pcr_info() local
1117 pcrs.count = get_unaligned_be32(response); in tpm2_get_pcr_info()
1122 if (pcrs.count > ARRAY_SIZE(tpm2_supported_algorithms) || in tpm2_get_pcr_info()
1123 pcrs.count < 1) { in tpm2_get_pcr_info()
1124 printf("%s: too many pcrs: %u\n", __func__, pcrs.count); in tpm2_get_pcr_info()
1132 for (i = 0; i < pcrs.count; i++) { in tpm2_get_pcr_info()
1152 pcrs.selection[i].hash = in tpm2_get_pcr_info()
1154 pcrs.selection[i].size_of_select = in tpm2_get_pcr_info()
1156 if (pcrs.selection[i].size_of_select > TPM2_PCR_SELECT_MAX) { in tpm2_get_pcr_info()
1158 pcrs.selection[i].size_of_select); in tpm2_get_pcr_info()
1162 memcpy(pcrs.selection[i].pcr_select, response + pcr_select_offset, in tpm2_get_pcr_info()
1163 pcrs.selection[i].size_of_select); in tpm2_get_pcr_info()
1166 for (i = 0; i < pcrs.count; i++) { in tpm2_get_pcr_info()
1167 u32 hash_mask = tpm2_algorithm_to_mask(pcrs.selection[i].hash); in tpm2_get_pcr_info()
1171 if (tpm2_is_active_pcr(&pcrs.selection[i])) in tpm2_get_pcr_info()
1175 pcrs.selection[i].hash); in tpm2_get_pcr_info()
1179 *pcr_banks = pcrs.count; in tpm2_get_pcr_info()