1 /** 2 * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 * Description: The header file of the functions, which will be registered to mbedtls. 15 * 16 * Create: 2023-07-12 17 */ 18 19 #ifndef CRYPTO_MBEDTLS_HARDEN_ADAPT_H 20 #define CRYPTO_MBEDTLS_HARDEN_ADAPT_H 21 22 #include <stdint.h> 23 24 #ifdef __cplusplus 25 #if __cplusplus 26 extern "C" { 27 #endif /* __cplusplus */ 28 #endif /* __cplusplus */ 29 30 /** 31 * @defgroup security_unified_mbedtls_harden_adapt mbedtls_harden_adapt 32 * @ingroup drivers_driver_security_unified 33 * @{ 34 */ 35 36 /** 37 * @if Eng 38 * @brief mbedtls harden adapt functions register, called by system mbedtls harden. 39 * @else 40 * @brief security_unified 模块对接第三方 mbedtls 接口需要注册的函数,若开启第三方对接宏 MBEDTLS_HARDEN_OPEN, 41 * 该接口由对接适配层调用。 42 * @endif 43 */ 44 int32_t mbedtls_adapt_register_func(void); 45 46 /** 47 * @} 48 */ 49 50 #ifdef __cplusplus 51 #if __cplusplus 52 } 53 #endif /* __cplusplus */ 54 #endif /* __cplusplus */ 55 56 #endif /* CRYPTO_MBEDTLS_HARDEN_ADAPT_H */