padlock.c padlock.h pem.c pk.c pk_ecc.c pk_internal.h pk_wrap.c pk_wrap.h pkcs12.c pkcs5.c pkcs7.c pkparse.c pkwrite.c pkwrite.h platform.c platform_util.c poly1305.c psa_crypto.c psa_crypto_aead.c psa_crypto_aead.h psa_crypto_cipher.c psa_crypto_cipher.h psa_crypto...
#define MBEDTLS_NO_PLATFORM_ENTROPY #define MBEDTLS_PKCS1_V15 #define MBEDTLS_SSL_PROTO_TLS1_2 #define MBEDTLS_AES_C #define MBEDTLS_ASN1_PARSE_C #define MBEDTLS_ASN1_WRITE_C #define MBEDTLS_BIGNUM_C #define MBEDTLS_CIPHER_C #define MBEDTLS_CTR_DRBG_C #define MBEDTLS_ENTROPY_C #define ...
1)MBEDTLS_PLATFORM_C 启用平台抽象接口,使能该参数后,用户可重新定义calloc/free等接口。 2)MBEDTLS_PLATFORM_MEMORY 启用内存分配接口,使能该参数后用户可以自己实现calloc/free接口,并通过宏定义替换或通过接口设置方式进行替换。 3)MBEDTLS_MEMORY_BUFFER_ALLOC_C 启用mbedtls自带的内存分配接口,该参数适用于那些没有...
#define MBEDTLS_CIPHER_C #define MBEDTLS_CTR_DRBG_C #define MBEDTLS_ENTROPY_C #define MBEDTLS_GCM_C #define MBEDTLS_MD_C #define MBEDTLS_MD5_C #define MBEDTLS_OID_C #define MBEDTLS_PK_C #define MBEDTLS_PK_PARSE_C #define MBEDTLS_PLATFORM_C #define MBEDTLS_RSA_C #define MBEDTLS_SHA1_C...
#ifdefined(MBEDTLS_PLATFORM_C) #include"mbedtls/platform.h" #else #include #include #definembedtls_printfprintf #defineMBEDTLS_EXIT_SUCCESSEXIT_ _SUCCESS _ _ _ #defineMBEDTLS_ _EXIT_ _FAILUREEXIT_ _FAILURE _ _ _ #endif #ifdefined(MBEDTLS_MD5_C) ...
从LWIP封装一层到MbedTLS. #if !defined(MBEDTLS_CONFIG_FILE)#include"mbedtls/config.h"#else#includeMBEDTLS_CONFIG_FILE#endif#include<string.h>#include<stdint.h>#if defined(MBEDTLS_NET_C)#if defined(MBEDTLS_PLATFORM_C)#include"mbedtls/platform.h"#else#include<stdlib.h>#endif#include"mbedtls/net...
#defineMBEDTLS_ERROR_C #defineMBEDTLS_GCM_C #defineMBEDTLS_HMAC_DRBG_C #defineMBEDTLS_MD_C #defineMBEDTLS_OID_C #defineMBEDTLS_PEM_PARSE_C #defineMBEDTLS_PK_C #defineMBEDTLS_PK_PARSE_C #defineMBEDTLS_PK_WRITE_C #defineMBEDTLS_PLATFORM_C ...
添加一个宏定义MBEDTLS_NO_PLATFORM_ENTROPY,单片机无系统所以需要添加该宏。然后编译工程即可~!
#if defined(MBEDTLS_PADLOCK_C)#include“mbedtls/padlock.h“#endif#if defined(MBEDTLS_AESNI_C)#include“mbedtls/aesni.h“#endif#if defined(MBEDTLS_SELF_TEST)#if defined(MBEDTLS_PLATFORM_C)#include“mbedtls/platform.h“#else#include #define mbedtls_printf printf#endif /* MBEDTLS_PLATFORM_C *...
mbedtls_platform_set_calloc_free(custom_calloc, custom_free) 1. 4.3 定时器 对DTLS定时器接口,并注册到底层。 复制 #if defined (__MBEDTLS_DTLS__)//Setdelaystowatchvoid platform_timing_set_delay(void *data, uint32_t int_ms, uint32_t fin_ms){platform_timing_delay_context *ctx = (platform...