diff options
Diffstat (limited to 'Userland/Libraries/LibCrypto/Authentication/HMAC.h')
-rw-r--r-- | Userland/Libraries/LibCrypto/Authentication/HMAC.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Libraries/LibCrypto/Authentication/HMAC.h b/Userland/Libraries/LibCrypto/Authentication/HMAC.h index 8c80602dbe..29c9ce1300 100644 --- a/Userland/Libraries/LibCrypto/Authentication/HMAC.h +++ b/Userland/Libraries/LibCrypto/Authentication/HMAC.h @@ -39,23 +39,23 @@ public: reset(); } - TagType process(const u8* message, size_t length) + TagType process(u8 const* message, size_t length) { reset(); update(message, length); return digest(); } - void update(const u8* message, size_t length) + void update(u8 const* message, size_t length) { m_inner_hasher.update(message, length); } TagType process(ReadonlyBytes span) { return process(span.data(), span.size()); } - TagType process(StringView string) { return process((const u8*)string.characters_without_null_termination(), string.length()); } + TagType process(StringView string) { return process((u8 const*)string.characters_without_null_termination(), string.length()); } void update(ReadonlyBytes span) { return update(span.data(), span.size()); } - void update(StringView string) { return update((const u8*)string.characters_without_null_termination(), string.length()); } + void update(StringView string) { return update((u8 const*)string.characters_without_null_termination(), string.length()); } TagType digest() { @@ -84,7 +84,7 @@ public: #endif private: - void derive_key(const u8* key, size_t length) + void derive_key(u8 const* key, size_t length) { auto block_size = m_inner_hasher.block_size(); // Note: The block size of all the current hash functions is 512 bits. |