mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 11:39:43 +00:00
LibCrypto: Fix MacOS build by replacing explicit_bzero with secure_zero
This commit is contained in:
parent
b8cad2c9b9
commit
a46b0fc1ff
Notes:
sideshowbarker
2024-07-18 04:04:22 +09:00
Author: https://github.com/bgianfo
Commit: a46b0fc1ff
Pull-request: https://github.com/SerenityOS/serenity/pull/10008
Reviewed-by: https://github.com/Dexesttp ✅
2 changed files with 4 additions and 4 deletions
|
@ -5,9 +5,9 @@
|
|||
*/
|
||||
|
||||
#include <AK/Endian.h>
|
||||
#include <AK/Memory.h>
|
||||
#include <AK/Types.h>
|
||||
#include <LibCrypto/Hash/SHA1.h>
|
||||
#include <string.h>
|
||||
|
||||
namespace Crypto {
|
||||
namespace Hash {
|
||||
|
@ -64,7 +64,7 @@ inline void SHA1::transform(const u8* data)
|
|||
c = 0;
|
||||
d = 0;
|
||||
e = 0;
|
||||
explicit_bzero(blocks, 16 * sizeof(u32));
|
||||
secure_zero(blocks, 16 * sizeof(u32));
|
||||
}
|
||||
|
||||
void SHA1::update(const u8* message, size_t length)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue