1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:07:35 +00:00

LibCrypto: Add a Hash::Manager that can act as any one of the hashes

This commit is contained in:
AnotherTest 2020-04-25 05:06:33 +04:30 committed by Andreas Kling
parent e997661e26
commit 43a49f5fff
6 changed files with 338 additions and 17 deletions

View file

@ -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 {