-
Notifications
You must be signed in to change notification settings - Fork 5
libbpf: Don't use AF_ALG for SHA-256 #6063
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libbpf: Don't use AF_ALG for SHA-256 #6063
Conversation
|
Upstream branch: 0e8e60e |
25b0220 to
191fc27
Compare
Reimplement libbpf_sha256() using some basic SHA-256 C code. This eliminates the newly-added dependency on AF_ALG, which is a problematic UAPI that is not supported by all kernels. Make libbpf_sha256() return void, since it can no longer fail. This simplifies some callers. Also drop the unnecessary 'sha_out_sz' parameter. Finally, also fix the typo in "compute_sha_udpate_offsets". Tested by uncommenting the included test code and running 'make -C tools/bpf/bpftool', which causes the test to be executed. Fixes: c297fe3 ("libbpf: Implement SHA256 internal helper") Signed-off-by: Eric Biggers <[email protected]>
|
Upstream branch: 15cf392 |
f13df56 to
67b50a4
Compare
191fc27 to
3561924
Compare
|
Upstream branch: 4ef77dd Pull request is NOT updated. Failed to apply https://patchwork.kernel.org/project/netdevbpf/list/?series=1006805 conflict: |
|
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=1006805 irrelevant now. Closing PR. |
Pull request for series with
subject: libbpf: Don't use AF_ALG for SHA-256
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1006805