TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
attest_token_test.h
Go to the documentation of this file.
1 /*
2  * attest_token_test.h
3  *
4  * Copyright (c) 2018-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 __ATTEST_TOKEN_TEST_H__
12 #define __ATTEST_TOKEN_TEST_H__
13 
14 #include <stdint.h>
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
44 int_fast16_t minimal_test(void);
45 
46 
52 int_fast16_t minimal_get_size_test(void);
53 
54 
60 int_fast16_t buffer_too_small_test(void);
61 
62 #ifdef SYMMETRIC_INITIAL_ATTESTATION
63 
79 int_fast16_t decode_test_symmetric_initial_attest(void);
80 
97 int_fast16_t decode_test_symmetric_iat_short_circuit_tag(void);
98 #else /* SYMMETRIC_INITIAL_ATTESTATION */
99 
115 int_fast16_t decode_test_normal_sig(void);
116 
117 
136 int_fast16_t decode_test_short_circuit_sig(void);
137 #endif /* SYMMETRIC_INITIAL_ATTESTATION */
138 
139 #ifdef __cplusplus
140 }
141 #endif
142 
143 #endif /* __TOKEN_TEST_H__ */
int_fast16_t minimal_get_size_test(void)
Test token size calculation.
int_fast16_t decode_test_normal_sig(void)
Test by checking signed values of claims.
int_fast16_t buffer_too_small_test(void)
Pass too small a buffer and confirm correct error result.
int_fast16_t decode_test_short_circuit_sig(void)
Test by checking short-circuit signed values of claims.
int_fast16_t minimal_test(void)
Minimal token creation test using a short-circuit signature.