LibCrypto: Call bytes() explicitly instead of implicitly.

This was a careless mistake.
https://github.com/SerenityOS/serenity/pull/3166#discussion_r471131732
This commit is contained in:
asynts 2020-08-16 19:17:22 +02:00 committed by Andreas Kling
parent aef6f00195
commit 868bd2e43d
Notes: sideshowbarker 2024-07-19 03:32:03 +09:00
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ public:
virtual const ByteBuffer& data() const override { return m_data; };
virtual void overwrite(ReadonlyBytes) override;
virtual void overwrite(const ByteBuffer& buffer) override { overwrite(buffer); }
virtual void overwrite(const ByteBuffer& buffer) override { overwrite(buffer.bytes()); }
virtual void overwrite(const u8* data, size_t size) override { overwrite({ data, size }); }
virtual void apply_initialization_vector(const u8* ivec) override

View File

@ -65,7 +65,7 @@ public:
virtual const ByteBuffer& data() const = 0;
virtual void overwrite(ReadonlyBytes) = 0;
virtual void overwrite(const ByteBuffer& buffer) { overwrite(buffer); }
virtual void overwrite(const ByteBuffer& buffer) { overwrite(buffer.bytes()); }
virtual void overwrite(const u8* data, size_t size) { overwrite({ data, size }); }
virtual void apply_initialization_vector(const u8* ivec) = 0;