mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 04:37:22 +00:00
LibCrypto: Add a Hash::Manager that can act as any one of the hashes
This commit is contained in:
parent
e997661e26
commit
43a49f5fff
Notes:
sideshowbarker
2024-07-19 07:04:25 +09:00
Author: https://github.com/alimpfard
Commit: 43a49f5fff
Pull-request: https://github.com/SerenityOS/serenity/pull/1661
Reviewed-by: https://github.com/Dexesttp
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/itamar8910
6 changed files with 338 additions and 17 deletions
|
@ -34,7 +34,11 @@ namespace Crypto {
|
|||
namespace Hash {
|
||||
|
||||
struct MD5Digest {
|
||||
u8 data[16];
|
||||
constexpr static size_t Size = 16;
|
||||
u8 data[Size];
|
||||
|
||||
const u8* immutable_data() const { return data; }
|
||||
size_t data_length() { return Size; }
|
||||
};
|
||||
|
||||
namespace MD5Constants {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue