Home
last modified time | relevance | path

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

/kernel/
Dkexec_file.c712 char *digest; in kexec_calculate_store_digests() local
747 digest = kzalloc(SHA256_DIGEST_SIZE, GFP_KERNEL); in kexec_calculate_store_digests()
748 if (!digest) { in kexec_calculate_store_digests()
794 ret = crypto_shash_final(desc, digest); in kexec_calculate_store_digests()
803 digest, SHA256_DIGEST_SIZE, 0); in kexec_calculate_store_digests()
809 kfree(digest); in kexec_calculate_store_digests()
/kernel/bpf/
Dcore.c267 u32 digest[SHA_DIGEST_WORDS]; in bpf_prog_calc_tag() local
280 sha_init(digest); in bpf_prog_calc_tag()
323 sha_transform(digest, todo, ws); in bpf_prog_calc_tag()
327 result = (__force __be32 *)digest; in bpf_prog_calc_tag()
329 result[i] = cpu_to_be32(digest[i]); in bpf_prog_calc_tag()