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 @addtogroup prod_errors 9 @{ 10 */ 11 12 /*! 13 @file 14 @brief This file contains the error definitions of the CryptoCell 15 production-library APIs. 16 */ 17 18 #ifndef _PROD_ERROR_H 19 #define _PROD_ERROR_H 20 21 22 #include "cc_error.h" 23 24 #ifdef __cplusplus 25 extern "C" 26 { 27 #endif 28 29 30 /************************ Defines ******************************/ 31 32 /* The error base address of the production library module of CryptoCell - 0x00F02A00 */ 33 /*! Library initialization failure. */ 34 #define CC_PROD_INIT_ERR (CC_PROD_MODULE_ERROR_BASE + 0x01UL) 35 /*! Illegal parameter. */ 36 #define CC_PROD_INVALID_PARAM_ERR (CC_PROD_MODULE_ERROR_BASE + 0x02UL) 37 /*! Invalid number of zeroes calculated. */ 38 #define CC_PROD_ILLEGAL_ZERO_COUNT_ERR (CC_PROD_MODULE_ERROR_BASE + 0x03UL) 39 /*! LCS is invalid for the operation. */ 40 #define CC_PROD_ILLEGAL_LCS_ERR (CC_PROD_MODULE_ERROR_BASE + 0x04UL) 41 /*! Invalid asset-package fields. */ 42 #define CC_PROD_ASSET_PKG_PARAM_ERR (CC_PROD_MODULE_ERROR_BASE + 0x05UL) 43 /*! Failed to validate the asset package. */ 44 #define CC_PROD_ASSET_PKG_VERIFY_ERR (CC_PROD_MODULE_ERROR_BASE + 0x06UL) 45 /*! HAL Fatal error occured. */ 46 #define CC_PROD_HAL_FATAL_ERR (CC_PROD_MODULE_ERROR_BASE + 0x07UL) 47 48 /*! 49 @} 50 */ 51 52 #endif 53