ladybird/Meta/Fuzzers/FuzzRSAKeyParsing.cpp

18 lines
434 B
C++
Raw Permalink Normal View History

/*
* Copyright (c) 2021, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibCrypto/PK/RSA.h>
#include <stddef.h>
#include <stdint.h>
2022-04-01 14:58:27 -03:00
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
{
AK::set_debug_enabled(false);
(void)Crypto::PK::RSA::parse_rsa_key({ data, size }, true, {});
(void)Crypto::PK::RSA::parse_rsa_key({ data, size }, false, {});
return 0;
}