2021-02-13 02:10:22 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2021, the SerenityOS developers.
|
|
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2021-02-13 02:10:22 -03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#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)
|
2021-02-13 02:10:22 -03:00
|
|
|
{
|
2023-11-03 14:49:54 -03:00
|
|
|
AK::set_debug_enabled(false);
|
2024-11-29 14:28:18 -03:00
|
|
|
(void)Crypto::PK::RSA::parse_rsa_key({ data, size }, true, {});
|
|
|
|
|
(void)Crypto::PK::RSA::parse_rsa_key({ data, size }, false, {});
|
2021-02-13 02:10:22 -03:00
|
|
|
return 0;
|
|
|
|
|
}
|