aboutsummaryrefslogtreecommitdiffstats
path: root/src/arch/x86/include/bits/bigint.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2024-01-16 16:09:16 +0000
committerMichael Brown <mcb30@ipxe.org>2024-01-16 16:09:16 +0000
commit26d3ef062b33e43e076b7ecef20c4ec3f9441860 (patch)
treeb53db24a8a2190088c816f899aeb9508097f2d78 /src/arch/x86/include/bits/bigint.h
parent4b7d9a6af08cb704ce77eadba2a7bb1b06c1554c (diff)
downloadipxe-26d3ef062b33e43e076b7ecef20c4ec3f9441860.tar.gz
[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>
Diffstat (limited to 'src/arch/x86/include/bits/bigint.h')
-rw-r--r--src/arch/x86/include/bits/bigint.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/arch/x86/include/bits/bigint.h b/src/arch/x86/include/bits/bigint.h
index 7443d6fdc..a6bc2ca1d 100644
--- a/src/arch/x86/include/bits/bigint.h
+++ b/src/arch/x86/include/bits/bigint.h
@@ -323,7 +323,9 @@ bigint_done_raw ( const uint32_t *value0, unsigned int size __unused,
}
extern void bigint_multiply_raw ( const uint32_t *multiplicand0,
+ unsigned int multiplicand_size,
const uint32_t *multiplier0,
- uint32_t *value0, unsigned int size );
+ unsigned int multiplier_size,
+ uint32_t *value0 );
#endif /* _BITS_BIGINT_H */