1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20:17:44 +00:00

LibCrypto: Add support for BLAKE2b

This commit is contained in:
implicitfield 2023-09-16 17:01:54 +04:00 committed by Ali Mohammad Pur
parent da2c18d1f9
commit 1b3ad1c721
8 changed files with 302 additions and 2 deletions

View file

@ -0,0 +1,15 @@
/*
* Copyright (c) 2023, the SerenityOS developers
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibCrypto/Hash/BLAKE2b.h>
#include <stddef.h>
#include <stdint.h>
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
{
Crypto::Hash::BLAKE2b::hash(data, size);
return 0;
}

View file

@ -1,5 +1,6 @@
set(FUZZER_TARGETS
ASN1
BLAKE2b
BMPLoader
Brotli
CyrillicDecoder
@ -70,6 +71,7 @@ if (TARGET LibWeb)
endif()
set(FUZZER_DEPENDENCIES_ASN1 LibCrypto LibTLS)
set(FUZZER_DEPENDENCIES_BLAKE2b LibCrypto)
set(FUZZER_DEPENDENCIES_BMPLoader LibGfx)
set(FUZZER_DEPENDENCIES_Brotli LibCompress)
set(FUZZER_DEPENDENCIES_CSSParser LibWeb)