diff options
Diffstat (limited to 'Libraries/LibCrypto/Hash/MD5.h')
-rw-r--r-- | Libraries/LibCrypto/Hash/MD5.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Libraries/LibCrypto/Hash/MD5.h b/Libraries/LibCrypto/Hash/MD5.h index 3219cb9260..0ff01ba756 100644 --- a/Libraries/LibCrypto/Hash/MD5.h +++ b/Libraries/LibCrypto/Hash/MD5.h @@ -75,14 +75,14 @@ constexpr u8 PADDING[] = { class MD5 final : public HashFunction<512, MD5Digest> { public: + using HashFunction::update; + MD5() { - m_buffer = ByteBuffer::wrap(m_data_buffer, sizeof(m_data_buffer)); + m_buffer = Bytes { m_data_buffer, sizeof(m_data_buffer) }; } 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; @@ -118,7 +118,7 @@ private: u32 m_A { MD5Constants::init_A }, m_B { MD5Constants::init_B }, m_C { MD5Constants::init_C }, m_D { MD5Constants::init_D }; u32 m_count[2] { 0, 0 }; - ByteBuffer m_buffer; + Bytes m_buffer; u8 m_data_buffer[64]; }; |