1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 08:05:07 +00:00
serenity/Userland/Libraries/LibCrypto/NumberTheory
AnotherTest 2601441486 LibCrypto: Avoid overly big allocs in intermediate ModularPower results
If we don't limit the sizes of the intermediate results, they will grow
indefinitely, causing each iteration to take longer and longer (in both
memcpy time, and algorithm runtime).
While calculating the trimmed length is fairly expensive, it's a small
cost to pay for uniform iteration times.
2021-04-03 11:22:01 +02:00
..
ModularFunctions.cpp LibCrypto: Avoid overly big allocs in intermediate ModularPower results 2021-04-03 11:22:01 +02:00
ModularFunctions.h Everywhere: Remove unnecessary debug comments. 2021-01-25 09:47:36 +01:00