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 HKDF APIs. 10 */ 11 12 /*! 13 @defgroup cc_hkdf_error Specific errors of the HKDF key-derivation APIs 14 @brief Contains the CryptoCell HKDF-API error definitions. See mbedtls_cc_hkdf_error.h. 15 @{ 16 @ingroup cc_hkdf 17 @} 18 */ 19 20 #ifndef _MBEDTLS_CC_HKDF_ERROR_H 21 #define _MBEDTLS_CC_HKDF_ERROR_H 22 23 #include "cc_error.h" 24 25 26 #ifdef __cplusplus 27 extern "C" 28 { 29 #endif 30 31 /************************ Defines *******************************/ 32 33 /* The base address for the CryptoCell HKDF module errors - 0x00F01100. */ 34 /*! Invalid argument. */ 35 #define CC_HKDF_INVALID_ARGUMENT_POINTER_ERROR (CC_HKDF_MODULE_ERROR_BASE + 0x0UL) 36 /*! Invalid argument size. */ 37 #define CC_HKDF_INVALID_ARGUMENT_SIZE_ERROR (CC_HKDF_MODULE_ERROR_BASE + 0x1UL) 38 /*! Illegal hash mode. */ 39 #define CC_HKDF_INVALID_ARGUMENT_HASH_MODE_ERROR (CC_HKDF_MODULE_ERROR_BASE + 0x3UL) 40 /*! HKDF not supported. */ 41 #define CC_HKDF_IS_NOT_SUPPORTED (CC_HKDF_MODULE_ERROR_BASE + 0xFFUL) 42 43 /************************ Enums *********************************/ 44 45 /************************ Typedefs *****************************/ 46 47 /************************ Structs ******************************/ 48 49 /************************ Public Variables **********************/ 50 51 /************************ Public Functions **********************/ 52 53 54 55 56 #ifdef __cplusplus 57 } 58 #endif 59 60 #endif //_MBEDTLS_CC_HKDF_ERROR_H 61 62