Skip to content

Commit 273018b

Browse files
committed
crypto: curve25519-x86_64: use in/out register constraints more precisely
Rather than passing all variables as modified, pass ones that are only read into that parameter. This helps with old gcc versions when alternatives are additionally used, and lets gcc's codegen be a little bit more efficient. This also syncs up with the latest Vale/EverCrypt output. This also forward ports 3c9f3b6 ("crypto: curve25519-x86_64: solve register constraints with reserved registers"). Cc: Aymeric Fromherz <aymeric.fromherz@inria.fr> Cc: Mathias Krause <minipli@grsecurity.net> Link: https://lore.kernel.org/wireguard/1554725710.1290070.1639240504281.JavaMail.zimbra@inria.fr/ Link: hacl-star/hacl-star#501 Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
1 parent 4f4c019 commit 273018b

File tree

1 file changed

+504
-293
lines changed

1 file changed

+504
-293
lines changed

0 commit comments

Comments
 (0)