1 /*
2  * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 /*!
8  @file
9  @brief This file contains the error definitions of the CryptoCell POLY APIs.
10 
11  @defgroup cc_poly_errors Specific errors of the CryptoCell POLY APIs
12  @brief Contains the CryptoCell POLY-API error definitions. See mbedtls_cc_poly_error.h.
13  @{
14  @ingroup cc_poly
15  @}
16  */
17 
18 #ifndef _MBEDTLS_CC_POLY_ERROR_H
19 #define _MBEDTLS_CC_POLY_ERROR_H
20 
21 
22 #include "cc_error.h"
23 
24 #ifdef __cplusplus
25 extern "C"
26 {
27 #endif
28 
29 /************************ Defines ******************************/
30 
31 /* The base address of errors for the CryptoCell POLY module - 0x00F02500 */
32 /*! Invalid key. */
33 #define CC_POLY_KEY_INVALID_ERROR               (CC_POLY_MODULE_ERROR_BASE + 0x01UL)
34 /*! Invalid input data. */
35 #define CC_POLY_DATA_INVALID_ERROR              (CC_POLY_MODULE_ERROR_BASE + 0x02UL)
36 /*! Illegal input data size. */
37 #define CC_POLY_DATA_SIZE_INVALID_ERROR         (CC_POLY_MODULE_ERROR_BASE + 0x03UL)
38 /*! MAC calculation error. */
39 #define CC_POLY_RESOURCES_ERROR                 (CC_POLY_MODULE_ERROR_BASE + 0x04UL)
40 
41 /************************ Enums ********************************/
42 
43 /************************ Typedefs  ****************************/
44 
45 /************************ Structs  *****************************/
46 
47 /************************ Public Variables *********************/
48 
49 /************************ Public Functions *********************/
50 
51 #ifdef __cplusplus
52 }
53 #endif
54 
55 #endif //_MBEDTLS_CC_POLY_ERROR_H
56 
57 
58