xref: /freebsd/crypto/libecc/include/libecc/sig/fuzzing_ecrdsa.h (revision f0865ec9906d5a18fa2a3b61381f22ce16e606ad)
1*f0865ec9SKyle Evans /*
2*f0865ec9SKyle Evans  *  Copyright (C) 2017 - This file is part of libecc project
3*f0865ec9SKyle Evans  *
4*f0865ec9SKyle Evans  *  Authors:
5*f0865ec9SKyle Evans  *      Ryad BENADJILA <ryadbenadjila@gmail.com>
6*f0865ec9SKyle Evans  *      Arnaud EBALARD <arnaud.ebalard@ssi.gouv.fr>
7*f0865ec9SKyle Evans  *      Jean-Pierre FLORI <jean-pierre.flori@ssi.gouv.fr>
8*f0865ec9SKyle Evans  *
9*f0865ec9SKyle Evans  *  Contributors:
10*f0865ec9SKyle Evans  *      Nicolas VIVET <nicolas.vivet@ssi.gouv.fr>
11*f0865ec9SKyle Evans  *      Karim KHALFALLAH <karim.khalfallah@ssi.gouv.fr>
12*f0865ec9SKyle Evans  *
13*f0865ec9SKyle Evans  *  This software is licensed under a dual BSD and GPL v2 license.
14*f0865ec9SKyle Evans  *  See LICENSE file at the root folder of the project.
15*f0865ec9SKyle Evans  */
16*f0865ec9SKyle Evans #include <libecc/lib_ecc_config.h>
17*f0865ec9SKyle Evans #include <libecc/lib_ecc_types.h>
18*f0865ec9SKyle Evans #if defined(WITH_SIG_ECRDSA) && defined(USE_CRYPTOFUZZ)
19*f0865ec9SKyle Evans 
20*f0865ec9SKyle Evans #ifndef __FUZZING_ECRDSA_H__
21*f0865ec9SKyle Evans #define __FUZZING_ECRDSA_H__
22*f0865ec9SKyle Evans 
23*f0865ec9SKyle Evans ATTRIBUTE_WARN_UNUSED_RET int ecrdsa_sign_raw(struct ec_sign_context *ctx, const u8 *input, u8 inputlen, u8 *sig, u8 siglen, const u8 *nonce, u8 noncelen);
24*f0865ec9SKyle Evans 
25*f0865ec9SKyle Evans ATTRIBUTE_WARN_UNUSED_RET int ecrdsa_verify_raw(struct ec_verify_context *ctx, const u8 *input, u8 inputlen);
26*f0865ec9SKyle Evans 
27*f0865ec9SKyle Evans #endif /* __FUZZING_ECRDSA_H__ */
28*f0865ec9SKyle Evans #endif /* WITH_SIG_ECRDSA && USE_CRYPTOFUZZ */
29