1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-23 20:27:35 +00:00
serenity/Userland/Libraries/LibCrypto/BigInt
DexesTTP fd80e7a339 LibCrypto: Reduce the UnsignedBigInteger inline size to 32 words
We never really needed the 512 words in the first place, and this does
reduce the stack allocations in montgomery modular power from 32Kb to
a more manageable 2Kb :^)

Note that the 32 words size doesn't provide any performance benefits or
drawbacks compared to other values. All values seem to have equivalent
performances (the tested values were 1, 2, 4, ..., 512). But since the
previous value of 512 was definitely too big, let's reduce it for now!
2021-05-13 19:18:07 +01:00
..
Algorithms LibCrypto: Add the montgomery modular power algorithm 2021-05-13 19:18:07 +01:00
SignedBigInteger.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
SignedBigInteger.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
UnsignedBigInteger.cpp LibCrypto: Add a += operation to UnsignedBigIntegerAlgorithms 2021-05-13 19:18:07 +01:00
UnsignedBigInteger.h LibCrypto: Reduce the UnsignedBigInteger inline size to 32 words 2021-05-13 19:18:07 +01:00