|
@@ -4,9 +4,9 @@
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
+#include <AK/Memory.h>
|
|
#include <AK/Types.h>
|
|
#include <AK/Types.h>
|
|
#include <LibCrypto/Hash/MD5.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 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); };
|
|
static constexpr u32 G(u32 x, u32 y, u32 z) { return (x & z) | ((~z) & y); };
|
|
@@ -200,7 +200,7 @@ void MD5::transform(const u8* block)
|
|
m_C += c;
|
|
m_C += c;
|
|
m_D += d;
|
|
m_D += d;
|
|
|
|
|
|
- explicit_bzero(x, sizeof(x));
|
|
|
|
|
|
+ secure_zero(x, sizeof(x));
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|