ladybird/Meta/Lagom/Fuzzers/FuzzSHA1.cpp
2021-09-06 01:53:26 +02:00

15 lines
315 B
C++

/*
* Copyright (c) 2021, Luke Wilde <lukew@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibCrypto/Hash/SHA1.h>
#include <stddef.h>
#include <stdint.h>
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
{
Crypto::Hash::SHA1::hash(data, size);
return 0;
}