Lines Matching refs:TPM2_ALG_SHA1
519 … if (!IN_SET(pcap->data.assignedPCR.pcrSelections[i].hash, TPM2_ALG_SHA256, TPM2_ALG_SHA1)) in tpm2_get_best_pcr_bank()
560 assert(pcap->data.assignedPCR.pcrSelections[i].hash == TPM2_ALG_SHA1); in tpm2_get_best_pcr_bank()
563 supported_hash = TPM2_ALG_SHA1; in tpm2_get_best_pcr_bank()
566 hash_with_valid_pcr = TPM2_ALG_SHA1; in tpm2_get_best_pcr_bank()
581 } else if (hash_with_valid_pcr == TPM2_ALG_SHA1) { in tpm2_get_best_pcr_bank()
585 assert(supported_hash == TPM2_ALG_SHA1); in tpm2_get_best_pcr_bank()
589 *ret = TPM2_ALG_SHA1; in tpm2_get_best_pcr_bank()
593 } else if (supported_hash == TPM2_ALG_SHA1) { in tpm2_get_best_pcr_bank()
595 *ret = TPM2_ALG_SHA1; in tpm2_get_best_pcr_bank()
1431 if (bank == TPM2_ALG_SHA1) in tpm2_pcr_bank_to_string()
1440 return TPM2_ALG_SHA1; in tpm2_pcr_bank_from_string()