1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:37:45 +00:00

LibCrypto: Add a simple SignedBigInteger

This patchset adds a simple SignedBigInteger that is entirely defined in
terms of UnsignedBigInteger.

It also adds a NumberTheory::Power function, which is terribly
inefficient, but since the use of exponentiation is very much
discouraged for large inputs, no particular attempts were made
to make it more performant.
This commit is contained in:
AnotherTest 2020-06-04 22:46:18 +04:30 committed by Andreas Kling
parent b4591f0037
commit d8208fd37c
5 changed files with 661 additions and 0 deletions

View file

@ -1,5 +1,6 @@
set(SOURCES
BigInt/UnsignedBigInteger.cpp
BigInt/SignedBigInteger.cpp
Cipher/AES.cpp
Hash/MD5.cpp
Hash/SHA1.cpp