aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/efi/Pi/PiHob.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2024-12-16 15:09:56 +0000
committerMichael Brown <mcb30@ipxe.org>2024-12-16 15:13:37 +0000
commit97079553b66ea9036348543e2b92cbe29bfd2c6b (patch)
tree37cf2929a45ab0f0f640e5440a4d89b6c09aab6a /src/include/ipxe/efi/Pi/PiHob.h
parent24db39fb2983ca83ab5c6ee37cb57a4f7f6f94e6 (diff)
downloadipxe-97079553b66ea9036348543e2b92cbe29bfd2c6b.tar.gz
[crypto] Calculate inverse of modulus on demand in bigint_montgomery()
Reduce the number of parameters passed to bigint_montgomery() by calculating the inverse of the modulus modulo the element size on demand. Cache the result, since Montgomery reduction will be used repeatedly with the same modulus value. In all currently supported algorithms, the modulus is a public value (or a fixed value defined by specification) and so this non-constant timing does not leak any private information. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/efi/Pi/PiHob.h')
0 files changed, 0 insertions, 0 deletions