Lines Matching refs:pcrs
399 struct tpml_pcr_selection pcrs; in tpm2_get_pcr_info() local
408 pcrs.count = get_unaligned_be32(response); in tpm2_get_pcr_info()
413 if (pcrs.count > MAX_HASH_COUNT || pcrs.count < 1) in tpm2_get_pcr_info()
420 for (i = 0; i < pcrs.count; i++) { in tpm2_get_pcr_info()
440 pcrs.selection[i].hash = in tpm2_get_pcr_info()
442 pcrs.selection[i].size_of_select = in tpm2_get_pcr_info()
444 if (pcrs.selection[i].size_of_select > TPM2_PCR_SELECT_MAX) in tpm2_get_pcr_info()
447 memcpy(pcrs.selection[i].pcr_select, response + pcr_select_offset, in tpm2_get_pcr_info()
448 pcrs.selection[i].size_of_select); in tpm2_get_pcr_info()
451 for (i = 0; i < pcrs.count; i++) { in tpm2_get_pcr_info()
452 u32 hash_mask = alg_to_mask(pcrs.selection[i].hash); in tpm2_get_pcr_info()
456 if (is_active_pcr(&pcrs.selection[i])) in tpm2_get_pcr_info()
459 EFI_PRINT("Unknown algorithm %x\n", pcrs.selection[i].hash); in tpm2_get_pcr_info()
463 *pcr_banks = pcrs.count; in tpm2_get_pcr_info()