diff options
Diffstat (limited to 'Libraries/LibCrypto/Hash/SHA1.h')
-rw-r--r-- | Libraries/LibCrypto/Hash/SHA1.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Libraries/LibCrypto/Hash/SHA1.h b/Libraries/LibCrypto/Hash/SHA1.h index 594172f3e7..98ff61e17d 100644 --- a/Libraries/LibCrypto/Hash/SHA1.h +++ b/Libraries/LibCrypto/Hash/SHA1.h @@ -56,6 +56,8 @@ struct SHA1Digest { class SHA1 final : public HashFunction<512, SHA1Digest<160 / 8>> { public: + using HashFunction::update; + SHA1() { reset(); @@ -63,9 +65,6 @@ public: virtual void update(const u8*, size_t) override; - 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; |