1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 23:28:11 +00:00
serenity/Userland/Libraries/LibCrypto
davidot 8b8cee3172 LibCrypto: Implement a (mostly) proper to_double for UnsignedBigInteger
SignedBigInteger can immediately use this by just negating the double if
the sign bit is set.
For simple cases (below 2^53) we can just convert via an u64, however
above that we need to extract the top 53 bits and use those as the
mantissa.

This function currently does not behave exactly as the JS spec specifies
however it is much less naive than the previous implementation.
2022-08-24 23:27:17 +01:00
..
ASN1 Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
Authentication Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
BigInt LibCrypto: Implement a (mostly) proper to_double for UnsignedBigInteger 2022-08-24 23:27:17 +01:00
Checksum Libraries: Use default constructors/destructors in LibCrypto 2022-03-10 18:04:26 -08:00
Cipher Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
Curves LibCrypto: Add Ed25519 2022-05-12 23:47:13 +04:30
Hash Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
NumberTheory Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
PK Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
CMakeLists.txt LibCrypto: Add Ed25519 2022-05-12 23:47:13 +04:30
Forward.h LibCrypto: Add the BigInteger concept 2021-12-22 11:27:31 +01:00
Verification.h AK+Userland: Use mpfard@serenityos.org for my copyright headers 2021-04-22 22:19:09 +02:00