1 /*
2  *  t_cose_sign_verify_test.h
3  *
4  * Copyright 2019, Laurence Lundblade
5  *
6  * SPDX-License-Identifier: BSD-3-Clause
7  *
8  * See BSD-3-Clause license in README.md
9  */
10 
11 #ifndef t_cose_sign_verify_test_h
12 #define t_cose_sign_verify_test_h
13 
14 #include <stdint.h>
15 
16 
17 /**
18  * \file t_cose_sign_verify_test.h
19  *
20  * \brief Tests that need public key crypto to be implemented
21  */
22 
23 
24 /**
25  * \brief Self test using openssl crypto.
26  *
27  * \return non-zero on failure.
28  */
29 int_fast32_t sign_verify_basic_test(void);
30 
31 
32 /*
33  * Sign some data, perturb the data and see that sig validation fails
34  */
35 int_fast32_t sign_verify_sig_fail_test(void);
36 
37 
38 /*
39  * Make a CWT and compare it to the one in the CWT RFC
40  */
41 int_fast32_t sign_verify_make_cwt_test(void);
42 
43 
44 /*
45  * Test the ability to calculate size of a COSE_Sign1
46  */
47 int_fast32_t sign_verify_get_size_test(void);
48 
49 #endif /* t_cose_sign_verify_test_h */
50