summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCrypto/Hash/MD5.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibCrypto/Hash/MD5.cpp')
-rw-r--r--Userland/Libraries/LibCrypto/Hash/MD5.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCrypto/Hash/MD5.cpp b/Userland/Libraries/LibCrypto/Hash/MD5.cpp
index c526bb8000..de4d529882 100644
--- a/Userland/Libraries/LibCrypto/Hash/MD5.cpp
+++ b/Userland/Libraries/LibCrypto/Hash/MD5.cpp
@@ -6,6 +6,7 @@
#include <AK/Types.h>
#include <LibCrypto/Hash/MD5.h>
+#include <string.h>
static constexpr u32 F(u32 x, u32 y, u32 z) { return (x & y) | ((~x) & z); };
static constexpr u32 G(u32 x, u32 y, u32 z) { return (x & z) | ((~z) & y); };
@@ -199,7 +200,7 @@ void MD5::transform(const u8* block)
m_C += c;
m_D += d;
- __builtin_memset(x, 0, sizeof(x));
+ explicit_bzero(x, sizeof(x));
}
}