1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright (c) 2014, STMicroelectronics International N.V.
4  */
5 #ifndef GUARD_TEE_MATHAPI_H
6 #define GUARD_TEE_MATHAPI_H
7 
8 #include <stddef.h>		/* for size_t */
9 #include <stdint.h>		/* for uint32_t and friends */
10 #include <stdbool.h>		/* for bool (!) */
11 
12 /*************************************************************
13  *
14  *  MACRO DEFINITIONS
15  *
16  *************************************************************/
17 
18 /*------------------------------------------------------------
19  *
20  *  How functions are exported
21  *
22  */
23 #define TEE_MATHAPI_EXPORT
24 
25 /*
26  * The modes for String Conversion
27  */
28 #define TEE_STRING_MODE_HEX_UC MPA_STRING_MODE_HEX_UC
29 #define TEE_STRING_MODE_HEX_LC MPA_STRING_MODE_HEX_UC
30 
31 /*------------------------------------------------------------
32  *
33  *  Define IN, OUT, INBUF and OUTBUF to keep format from the spec.
34  *
35  */
36 #define IN const
37 #define OUT
38 #define INOUT
39 #define INBUF const
40 #define OUTBUF
41 
42 /*************************************************************
43  *
44  *  MEMORY ALLOCATION AND SIZE
45  *
46  *************************************************************/
47 
48 /*************************************************************
49  *
50  * INITIALIZATION FUNCTIONS
51  *
52  *************************************************************/
53 
54 /*
55  * !!! This function must be called before you do anything else !!!
56  *  NOTE: Not part of the spec
57  */
58 TEE_MATHAPI_EXPORT void _TEE_MathAPI_Init(void);
59 
60 #endif
61