mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-15 07:09:43 +03:00
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:
parent
aef6f00195
commit
868bd2e43d
Notes:
sideshowbarker
2024-07-19 03:32:03 +09:00
Author: https://github.com/asynts Commit: https://github.com/SerenityOS/serenity/commit/868bd2e43d0 Pull-request: https://github.com/SerenityOS/serenity/pull/3179
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user