mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 21:07:34 +00:00
![]() 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. |
||
---|---|---|
.. | ||
HashFunction.h | ||
HashManager.h | ||
MD5.cpp | ||
MD5.h | ||
SHA1.cpp | ||
SHA1.h | ||
SHA2.cpp | ||
SHA2.h |