summaryrefslogtreecommitdiffhomepage
path: root/src/crypto/zinc/selftest/curve25519.h
diff options
context:
space:
mode:
authorMathias Krause <minipli@grsecurity.net>2021-07-06 15:27:14 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-08-08 22:35:06 +0200
commit8118c247a75ae95169f0a9a539dfc661ffda8bc5 (patch)
treea005776668b40c25b8bdb5030347ac063a991f6a /src/crypto/zinc/selftest/curve25519.h
parent29747255f9672035ccf9cc310b7ff66b1f35f1d2 (diff)
crypto: curve25519-x86_64: solve register constraints with reserved registersHEADmaster
The register constraints for the inline assembly in fsqr() and fsqr2() are pretty tight on what the compiler may assign to the remaining three register variables. The clobber list only allows the following to be used: RDI, RSI, RBP and R12. With RAP reserving R12 and a kernel having CONFIG_FRAME_POINTER=y, claiming RBP, there are only two registers left so the compiler rightfully complains about impossible constraints. Provide alternatives that'll allow a memory reference for 'out' to solve the allocation constraint dilemma for this configuration. Signed-off-by: Mathias Krause <minipli@grsecurity.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto/zinc/selftest/curve25519.h')
0 files changed, 0 insertions, 0 deletions