diff options
Diffstat (limited to 'lib/ext/t_cose/test/t_cose_make_test_pub_key.h')
-rw-r--r-- | lib/ext/t_cose/test/t_cose_make_test_pub_key.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/ext/t_cose/test/t_cose_make_test_pub_key.h b/lib/ext/t_cose/test/t_cose_make_test_pub_key.h new file mode 100644 index 0000000000..585c0b2b8d --- /dev/null +++ b/lib/ext/t_cose/test/t_cose_make_test_pub_key.h @@ -0,0 +1,32 @@ +/* + * t_cose_make_test_pub_key.h + * + * Copyright 2019, Laurence Lundblade + * + * SPDX-License-Identifier: BSD-3-Clause + * + * See BSD-3-Clause license in README.md + */ + +#include "t_cose_common.h" +#include <stdint.h> + +/** + * \file t_cose_make_test_pub_key.h + * + * \brief This defines a simple interface to make keys for tests cases. + * + */ + + +/** + * \brief make an ECDSA key pair for testing suited to algorim + * + */ +enum t_cose_err_t make_ecdsa_key_pair(int32_t cose_algorithm_id, + struct t_cose_key *key_pair); + + +void free_ecdsa_key_pair(struct t_cose_key key_pair); + + |