Searched refs:TPM2_ALG_SHA1 (Results 1 – 2 of 2) sorted by relevance
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()[all …]
70 #ifndef TPM2_ALG_SHA171 #define TPM2_ALG_SHA1 0x4 macro