summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCrypto/Hash/HashFunction.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibCrypto/Hash/HashFunction.h')
-rw-r--r--Userland/Libraries/LibCrypto/Hash/HashFunction.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibCrypto/Hash/HashFunction.h b/Userland/Libraries/LibCrypto/Hash/HashFunction.h
index ff73aa6e61..3d875ff5db 100644
--- a/Userland/Libraries/LibCrypto/Hash/HashFunction.h
+++ b/Userland/Libraries/LibCrypto/Hash/HashFunction.h
@@ -19,7 +19,7 @@ struct Digest {
constexpr static size_t Size = DigestS / 8;
u8 data[Size];
- [[nodiscard]] ALWAYS_INLINE const u8* immutable_data() const { return data; }
+ [[nodiscard]] ALWAYS_INLINE u8 const* immutable_data() const { return data; }
[[nodiscard]] ALWAYS_INLINE size_t data_length() const { return Size; }
[[nodiscard]] ALWAYS_INLINE ReadonlyBytes bytes() const { return { immutable_data(), data_length() }; }
@@ -39,12 +39,12 @@ public:
constexpr static size_t block_size() { return BlockSize; }
constexpr static size_t digest_size() { return DigestSize; }
- virtual void update(const u8*, size_t) = 0;
+ virtual void update(u8 const*, size_t) = 0;
void update(Bytes buffer) { update(buffer.data(), buffer.size()); }
void update(ReadonlyBytes buffer) { update(buffer.data(), buffer.size()); }
- void update(const ByteBuffer& buffer) { update(buffer.data(), buffer.size()); }
- void update(StringView string) { update((const u8*)string.characters_without_null_termination(), string.length()); }
+ void update(ByteBuffer const& buffer) { update(buffer.data(), buffer.size()); }
+ void update(StringView string) { update((u8 const*)string.characters_without_null_termination(), string.length()); }
virtual DigestType peek() = 0;
virtual DigestType digest() = 0;