Lines Matching refs:hash_algo
129 void **hash, const char *hash_algo, int *len) in efi_hash_regions() argument
133 if (!hash_algo) in efi_hash_regions()
136 hash_len = algo_to_len(hash_algo); in efi_hash_regions()
148 ret = hash_calculate(hash_algo, regs, count, *hash); in efi_hash_regions()
217 const char *hash_algo = NULL; in efi_signature_lookup_digest() local
233 hash_algo = guid_to_sha_str(&efi_guid_sha256); in efi_signature_lookup_digest()
239 !efi_hash_regions(regs->reg, regs->num, &hash, hash_algo, in efi_signature_lookup_digest()
289 const char *hash_algo = NULL; in efi_lookup_certificate() local
305 hash_algo = guid_to_sha_str(&efi_guid_sha256); in efi_lookup_certificate()
306 if (!efi_hash_regions(reg, 1, &hash, hash_algo, &len)) in efi_lookup_certificate()
328 if (!efi_hash_regions(reg, 1, &hash_tmp, hash_algo, in efi_lookup_certificate()
432 const char *hash_algo = NULL; in efi_signature_check_revocation() local
441 hash_algo = guid_to_sha_str(&siglist->sig_type); in efi_signature_check_revocation()
442 if (!hash_algo) in efi_signature_check_revocation()
448 if (!efi_hash_regions(reg, 1, &hash, hash_algo, &len)) in efi_signature_check_revocation()
520 sinfo->sig->hash_algo, sinfo->sig->pkey_algo); in efi_signature_verify()