Lines Matching refs:hash
128 void **hash, size_t *size) in efi_hash_regions() argument
130 if (!*hash) { in efi_hash_regions()
131 *hash = calloc(1, SHA256_SUM_LEN); in efi_hash_regions()
132 if (!*hash) { in efi_hash_regions()
140 hash_calculate("sha256", regs, count, *hash); in efi_hash_regions()
144 *hash, SHA256_SUM_LEN, false); in efi_hash_regions()
166 void *hash = NULL; in efi_signature_lookup_digest() local
183 if (!efi_hash_regions(regs->reg, regs->num, &hash, &size)) { in efi_signature_lookup_digest()
196 !memcmp(sig_data->data, hash, size)) { in efi_signature_lookup_digest()
198 free(hash); in efi_signature_lookup_digest()
203 free(hash); in efi_signature_lookup_digest()
204 hash = NULL; in efi_signature_lookup_digest()
228 void *hash = NULL, *hash_tmp = NULL; in efi_lookup_certificate() local
244 if (!efi_hash_regions(reg, 1, &hash, &size)) in efi_lookup_certificate()
271 if (!memcmp(hash, hash_tmp, size)) { in efi_lookup_certificate()
278 free(hash); in efi_lookup_certificate()
365 void *hash = NULL; in efi_signature_check_revocation() local
383 if (!efi_hash_regions(reg, 1, &hash, &size)) in efi_signature_check_revocation()
403 memcmp(sig_data->data, hash, size)) in efi_signature_check_revocation()
415 free(hash); in efi_signature_check_revocation()
418 free(hash); in efi_signature_check_revocation()
419 hash = NULL; in efi_signature_check_revocation()