mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-11 17:00:37 +00:00
f29036dc98
Namely MD5, SHA1, SHA256, SHA384 and SHA512.
16 lines
361 B
C++
16 lines
361 B
C++
/*
|
|
* Copyright (c) 2021, Luke Wilde <lukew@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibCrypto/Hash/SHA2.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
|
|
{
|
|
auto buffer = ByteBuffer::copy(data, size);
|
|
Crypto::Hash::SHA256::hash(buffer);
|
|
return 0;
|
|
}
|