diff options
Diffstat (limited to 'Userland/Libraries/LibCrypto/Hash/MD5.cpp')
-rw-r--r-- | Userland/Libraries/LibCrypto/Hash/MD5.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibCrypto/Hash/MD5.cpp b/Userland/Libraries/LibCrypto/Hash/MD5.cpp index e698021cff..72cb516d0c 100644 --- a/Userland/Libraries/LibCrypto/Hash/MD5.cpp +++ b/Userland/Libraries/LibCrypto/Hash/MD5.cpp @@ -48,7 +48,7 @@ static constexpr void round_4(u32& a, u32 b, u32 c, u32 d, u32 x, u32 s, u32 ac) namespace Crypto { namespace Hash { -void MD5::update(const u8* input, size_t length) +void MD5::update(u8 const* input, size_t length) { auto index = (u32)(m_count[0] >> 3) & 0x3f; size_t offset { 0 }; @@ -101,7 +101,7 @@ MD5::DigestType MD5::peek() return digest; } -void MD5::encode(const u32* from, u8* to, size_t length) +void MD5::encode(u32 const* from, u8* to, size_t length) { for (size_t i = 0, j = 0; j < length; ++i, j += 4) { to[j] = (u8)(from[i] & 0xff); @@ -111,13 +111,13 @@ void MD5::encode(const u32* from, u8* to, size_t length) } } -void MD5::decode(const u8* from, u32* to, size_t length) +void MD5::decode(u8 const* from, u32* to, size_t length) { for (size_t i = 0, j = 0; j < length; ++i, j += 4) to[i] = (((u32)from[j]) | (((u32)from[j + 1]) << 8) | (((u32)from[j + 2]) << 16) | (((u32)from[j + 3]) << 24)); } -void MD5::transform(const u8* block) +void MD5::transform(u8 const* block) { auto a = m_A; auto b = m_B; |