Lines Matching refs:hash
404 .pcrSelections[0].hash = bank, in tpm2_pcr_mask_to_selecion()
519 … if (!IN_SET(pcap->data.assignedPCR.pcrSelections[i].hash, TPM2_ALG_SHA256, TPM2_ALG_SHA1)) in tpm2_get_best_pcr_bank()
528 … strna(tpm2_pcr_bank_to_string(pcap->data.assignedPCR.pcrSelections[i].hash))); in tpm2_get_best_pcr_bank()
544 … strna(tpm2_pcr_bank_to_string(pcap->data.assignedPCR.pcrSelections[i].hash))); in tpm2_get_best_pcr_bank()
548 … good = tpm2_pcr_mask_good(c, pcap->data.assignedPCR.pcrSelections[i].hash, pcr_mask); in tpm2_get_best_pcr_bank()
552 if (pcap->data.assignedPCR.pcrSelections[i].hash == TPM2_ALG_SHA256) { in tpm2_get_best_pcr_bank()
560 assert(pcap->data.assignedPCR.pcrSelections[i].hash == TPM2_ALG_SHA1); in tpm2_get_best_pcr_bank()
800 *ret_pcr_bank = pcr_selection.pcrSelections[0].hash; in tpm2_make_pcr_session()
810 struct sha256_ctx hash; in hash_pin() local
814 sha256_init_ctx(&hash); in hash_pin()
815 sha256_process_bytes(pin, len, &hash); in hash_pin()
816 sha256_finish_ctx(&hash, ret_digest); in hash_pin()
818 explicit_bzero_safe(&hash, sizeof(hash)); in hash_pin()
840 _cleanup_free_ void *blob = NULL, *hash = NULL; in tpm2_seal() local
1005 hash = memdup(policy_digest->buffer, policy_digest->size); in tpm2_seal()
1006 if (!hash) in tpm2_seal()
1016 *ret_pcr_hash = TAKE_PTR(hash); in tpm2_seal()