]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[crypto] Add bigint_swap() to conditionally swap big integers
authorMichael Brown <mcb30@ipxe.org>
Fri, 19 Jan 2024 12:34:02 +0000 (12:34 +0000)
committerMichael Brown <mcb30@ipxe.org>
Fri, 19 Jan 2024 12:34:02 +0000 (12:34 +0000)
commitbac13ba1f658a1e742b9ceb958e670086affebe7
tree912fd8cd64b62fc7b6eb2242b97a0f68dec0a0d5
parent13e390d54edde17c8e22b0f6d8897c273a91c5d0
[crypto] Add bigint_swap() to conditionally swap big integers

Add a helper function bigint_swap() that can be used to conditionally
swap a pair of big integers in constant time.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/crypto/bigint.c
src/include/ipxe/bigint.h
src/tests/bigint_test.c