serenity/Meta/Lagom/Fuzzers/FuzzSHA512.cpp
2022-04-01 21:24:45 +01:00

15 lines
317 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(uint8_t const* data, size_t size)
{
Crypto::Hash::SHA512::hash(data, size);
return 0;
}