1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-23 21:07:34 +00:00
serenity/Userland/Libraries/LibCrypto/Hash
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
..
HashFunction.h LibCrypto: Exclude class_name() methods from the Kernel 2022-02-16 22:21:37 +01:00
HashManager.h LibTLS: Add signature verification for DHE and ECDHE key exchange 2022-02-23 13:20:28 +03:30
MD5.cpp LibCrypto: Fix MacOS build by replacing explicit_bzero with secure_zero 2021-09-13 00:02:42 +02:00
MD5.h LibCrypto: Exclude class_name() methods from the Kernel 2022-02-16 22:21:37 +01:00
SHA1.cpp LibCrypto: Fix MacOS build by replacing explicit_bzero with secure_zero 2021-09-13 00:02:42 +02:00
SHA1.h LibCrypto: Exclude class_name() methods from the Kernel 2022-02-16 22:21:37 +01:00
SHA2.cpp LibCrypto: Correctly add length to SHA384 and SHA512 hashes 2022-03-26 02:25:23 +04:30
SHA2.h LibCrypto: Correctly add length to SHA384 and SHA512 hashes 2022-03-26 02:25:23 +04:30