]> Gentwo Git Trees - linux/.git/commit
bpf: Use sha1() instead of sha1_transform() in bpf_prog_calc_tag()
authorEric Biggers <ebiggers@kernel.org>
Mon, 11 Aug 2025 20:16:15 +0000 (13:16 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 22 Aug 2025 18:40:05 +0000 (11:40 -0700)
commitd47cc4dea17391c99b943fa8d70a279e906b2843
treedfb6eea68407b4917219422fb56a059a5556db78
parent0780f54ab129b28e2b29689c95ad579a9db04fab
bpf: Use sha1() instead of sha1_transform() in bpf_prog_calc_tag()

Now that there's a proper SHA-1 library API, just use that instead of
the low-level SHA-1 compression function.  This eliminates the need for
bpf_prog_calc_tag() to implement the SHA-1 padding itself.  No
functional change; the computed tags remain the same.

Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/bpf/20250811201615.564461-1-ebiggers@kernel.org
include/linux/filter.h
kernel/bpf/core.c