Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 218a1cac authored by Kees Cook's avatar Kees Cook Committed by Sami Tolvanen
Browse files

FROMLIST: crypto, x86/sha: Eliminate casts on asm implementations



In order to avoid CFI function prototype mismatches, this removes the
casts on assembly implementations of sha1/256/512 accelerators. The
safety checks from BUILD_BUG_ON() remain.

Additionally, this renames various arguments for clarity, as suggested
by Eric Biggers.

Signed-off-by: default avatarKees Cook <keescook@chromium.org>
(am from https://lore.kernel.org/patchwork/patch/1179963/)
Link: https://lore.kernel.org/lkml/202001141955.C4136E9C5@keescook


Bug: 145297900
Change-Id: I331d710f11775b66229acedc59861876a2d6708b
Signed-off-by: default avatarSami Tolvanen <samitolvanen@google.com>
parent 593d6805
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment