1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-23 23:22:06 +00:00
serenity/Userland/Libraries/LibCrypto
Linus Groh 58c6a156bf LibCrypto: Fix subtracting two negative SignedBigIntegers
Currently, we get the following results

    -1 - -2 = -1
    -2 - -1 =  1

Correct would be:

    -1 - -2 =  1
    -2 - -1 = -1

This was already attempted to be fixed in 7ed8970, but that change was
incorrect. This directly translates to LibJS BigInts having the same
incorrect behavior - it even was tested.
2021-11-16 10:06:53 +00:00
..
ASN1 Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
Authentication Everywhere: Pass AK::ReadonlyBytes by value 2021-11-11 01:27:46 +01:00
BigInt LibCrypto: Fix subtracting two negative SignedBigIntegers 2021-11-16 10:06:53 +00:00
Checksum Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00
Cipher Everywhere: Pass AK::ReadonlyBytes by value 2021-11-11 01:27:46 +01:00
Hash LibCrypto: Pass AK::Bytes by value 2021-11-11 01:27:46 +01:00
NumberTheory Everywhere: Make ByteBuffer::{create_*,copy}() OOM-safe 2021-09-06 01:53:26 +02:00
PK Userland: Include Vector.h in a few places to make HeaderCheck happy 2021-11-11 20:36:36 +01:00
CMakeLists.txt LibCrypto: Split BigInteger operations into an Algorithms class 2021-05-13 19:18:07 +01:00
Verification.h AK+Userland: Use mpfard@serenityos.org for my copyright headers 2021-04-22 22:19:09 +02:00