mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
f29036dc98
Namely MD5, SHA1, SHA256, SHA384 and SHA512.
16 lines
359 B
C++
16 lines
359 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)
|
|
{
|
|
auto buffer = ByteBuffer::copy(data, size);
|
|
Crypto::Hash::SHA1::hash(buffer);
|
|
return 0;
|
|
}
|