Home
last modified time | relevance | path

Searched refs:TPM2_ALG_SHA1 (Results 1 – 2 of 2) sorted by relevance

/systemd-251/src/shared/
Dtpm2-util.c519 … 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 …]
Dtpm2-util.h70 #ifndef TPM2_ALG_SHA1
71 #define TPM2_ALG_SHA1 0x4 macro