]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[crypto] Expose carry flag from big integer addition and subtraction
authorMichael Brown <mcb30@ipxe.org>
Tue, 26 Nov 2024 12:53:01 +0000 (12:53 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 26 Nov 2024 12:55:13 +0000 (12:55 +0000)
commit167a08f08928c7e469f50d5d364287abb784e99c
tree039a60c76e5da50dfe17cffb41c4491087c2c74f
parentda6da6eb3b83fe92002e9c8e245933498ba19a48
[crypto] Expose carry flag from big integer addition and subtraction

Expose the effective carry (or borrow) out flag from big integer
addition and subtraction, and use this to elide an explicit bit test
when performing x25519 reduction.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/arm32/include/bits/bigint.h
src/arch/arm64/include/bits/bigint.h
src/arch/loong64/include/bits/bigint.h
src/arch/riscv/include/bits/bigint.h
src/arch/x86/include/bits/bigint.h
src/crypto/x25519.c
src/include/ipxe/bigint.h
src/tests/bigint_test.c