]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[crypto] Allow multiplicand and multiplier to differ in size 118/head
authorMichael Brown <mcb30@ipxe.org>
Tue, 16 Jan 2024 16:09:16 +0000 (16:09 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 16 Jan 2024 16:09:16 +0000 (16:09 +0000)
commit26d3ef062b33e43e076b7ecef20c4ec3f9441860
treeb53db24a8a2190088c816f899aeb9508097f2d78
parent4b7d9a6af08cb704ce77eadba2a7bb1b06c1554c
[crypto] Allow multiplicand and multiplier to differ in size

Big integer multiplication is currently used only as part of modular
exponentiation, where both multiplicand and multiplier will be the
same size.

Relax this requirement to allow for the use of big integer
multiplication in other contexts.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/arm32/core/arm32_bigint.c
src/arch/arm32/include/bits/bigint.h
src/arch/arm64/core/arm64_bigint.c
src/arch/arm64/include/bits/bigint.h
src/arch/loong64/core/loong64_bigint.c
src/arch/loong64/include/bits/bigint.h
src/arch/x86/core/x86_bigint.c
src/arch/x86/include/bits/bigint.h
src/include/ipxe/bigint.h
src/tests/bigint_test.c