mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:47:34 +00:00
LibTLS+LibCrypto: More ByteBuffer -> Span conversion
This commit is contained in:
parent
8e20208dd6
commit
f82b0a78ef
13 changed files with 45 additions and 40 deletions
|
@ -45,8 +45,11 @@ public:
|
|||
static size_t digest_size() { return DigestSize; };
|
||||
|
||||
virtual void update(const u8*, size_t) = 0;
|
||||
virtual void update(const ByteBuffer& buffer) { update(buffer.data(), buffer.size()); };
|
||||
virtual void update(const StringView& string) { update((const u8*)string.characters_without_null_termination(), string.length()); };
|
||||
|
||||
void update(const Bytes& buffer) { update(buffer.data(), buffer.size()); };
|
||||
void update(const ReadonlyBytes& buffer) { update(buffer.data(), buffer.size()); };
|
||||
void update(const ByteBuffer& buffer) { update(buffer.data(), buffer.size()); };
|
||||
void update(const StringView& string) { update((const u8*)string.characters_without_null_termination(), string.length()); };
|
||||
|
||||
virtual DigestType peek() = 0;
|
||||
virtual DigestType digest() = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue