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

LibCrypto: Add SHA512

There is quite a bit of avoidable duplication, however, I could not get
the compiler to be happy about SHA2<Size> (see FIXMEs)
This commit is contained in:
AnotherTest 2020-04-08 06:24:28 +04:30 committed by Andreas Kling
parent ca097b093b
commit 8c645916b4
6 changed files with 342 additions and 4 deletions

View file

@ -79,6 +79,7 @@ namespace Hash {
virtual void update(const ByteBuffer& buffer) override { update(buffer.data(), buffer.size()); };
virtual void update(const StringView& string) override { update((const u8*)string.characters_without_null_termination(), string.length()); };
virtual DigestType digest() override;
virtual DigestType peek() override;
virtual String class_name() const override { return "MD5"; }