ladybird/Tests/LibCrypto
Michiel Visser 37da5cb3b3 LibCrypto: Correctly add length to SHA384 and SHA512 hashes
The SHA384 and SHA512 hashes would produce incorrect results for data
where the length % 128 was in the range 112-119. This was because the
total number of bits in the hashed values was added at the end as a
64-bit number instead of a 128-bit number. In most cases this would not
cause any issues, as this space was padded with zeroes, however in the
case that the length % 128 was 112-119, some incorrect data ended up
where this 128-bit length value was expected.

This change fixes the problems in LibTLS where some websites would
result in a DecryptError on handshake.
2022-03-26 02:25:23 +04:30
..
CMakeLists.txt LibCrypto: Add curve x25519 2022-02-18 12:34:23 +02:00
TestAES.cpp LibCrypto+Tests: Avoid implicitly copying ByteBuffer 2021-12-08 09:46:13 -08:00
TestBigInteger.cpp LibCrypto: Do not allow signed big integers to be negative zero 2022-02-06 15:49:54 +00:00
TestChecksum.cpp LibCrypto+LibTLS: Split and move test suite into Tests directory 2021-06-19 19:05:36 +04:30
TestCurves.cpp LibCrypto: Add DH exchange for SECP256r1 to TestCurves 2022-03-20 00:51:50 +03:30
TestHash.cpp LibCrypto: Correctly add length to SHA384 and SHA512 hashes 2022-03-26 02:25:23 +04:30
TestHMAC.cpp LibCrypto+LibTLS: Split and move test suite into Tests directory 2021-06-19 19:05:36 +04:30
TestRSA.cpp Everywhere: Make ByteBuffer::{create_*,copy}() OOM-safe 2021-09-06 01:53:26 +02:00