summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCrypto/Hash/SHA1.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibCrypto/Hash/SHA1.h')
-rw-r--r--Userland/Libraries/LibCrypto/Hash/SHA1.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Libraries/LibCrypto/Hash/SHA1.h b/Userland/Libraries/LibCrypto/Hash/SHA1.h
index 8fcbfc7f56..200cc1f509 100644
--- a/Userland/Libraries/LibCrypto/Hash/SHA1.h
+++ b/Userland/Libraries/LibCrypto/Hash/SHA1.h
@@ -37,20 +37,20 @@ public:
reset();
}
- virtual void update(const u8*, size_t) override;
+ virtual void update(u8 const*, size_t) override;
virtual DigestType digest() override;
virtual DigestType peek() override;
- inline static DigestType hash(const u8* data, size_t length)
+ inline static DigestType hash(u8 const* data, size_t length)
{
SHA1 sha;
sha.update(data, length);
return sha.digest();
}
- inline static DigestType hash(const ByteBuffer& buffer) { return hash(buffer.data(), buffer.size()); }
- inline static DigestType hash(StringView buffer) { return hash((const u8*)buffer.characters_without_null_termination(), buffer.length()); }
+ inline static DigestType hash(ByteBuffer const& buffer) { return hash(buffer.data(), buffer.size()); }
+ inline static DigestType hash(StringView buffer) { return hash((u8 const*)buffer.characters_without_null_termination(), buffer.length()); }
#ifndef KERNEL
virtual String class_name() const override
@@ -68,7 +68,7 @@ public:
}
private:
- inline void transform(const u8*);
+ inline void transform(u8 const*);
u8 m_data_buffer[BlockSize] {};
size_t m_data_length { 0 };