ladybird/Userland/Libraries/LibCrypto/BigInt
Tim Ledbetter 48a3a02238 LibCrypto: Make constructing a BigInteger from string fallible
Previously, constructing a `UnsignedBigInteger::from_base()` could
produce an incorrect result if the input string contained a valid
Base36 digit that was out of range of the given base. The same method
would also crash if the input string contained an invalid Base36 digit.
An error is now returned in both these cases.

Constructing a BigFraction from string is now also fallible, so that we
can handle the case where we are given an input string with invalid
digits.
2024-01-13 19:01:35 -07:00
..
Algorithms Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
SignedBigInteger.cpp LibCrypto: Make constructing a BigInteger from string fallible 2024-01-13 19:01:35 -07:00
SignedBigInteger.h LibCrypto: Make constructing a BigInteger from string fallible 2024-01-13 19:01:35 -07:00
UnsignedBigInteger.cpp LibCrypto: Make constructing a BigInteger from string fallible 2024-01-13 19:01:35 -07:00
UnsignedBigInteger.h LibCrypto: Make constructing a BigInteger from string fallible 2024-01-13 19:01:35 -07:00