26 #ifndef MBEDTLS_SLCL_DEVICE_H
27 #define MBEDTLS_SLCL_DEVICE_H
29 #if !defined(MBEDTLS_CONFIG_FILE)
32 #include MBEDTLS_CONFIG_FILE
35 #include "em_device.h"
37 #if ( defined(CRYPTO_COUNT) && (CRYPTO_COUNT > 0) ) || \
38 ( defined(AES_COUNT) && (AES_COUNT > 0) )
52 #define MBEDTLS_ERR_DEVICE_NOT_SUPPORTED ((int)MBEDTLS_ERR_DEVICE_BASE | 0x1)
55 #if defined(AES_COUNT) && (AES_COUNT > 0)
56 #define MBEDTLS_DEVICE_COUNT AES_COUNT
58 #if defined(CRYPTO_COUNT) && (CRYPTO_COUNT > 0)
59 #define MBEDTLS_DEVICE_COUNT CRYPTO_COUNT
71 #if defined(MBEDTLS_CRYPTO_DEVICE_PREEMPTION)
87 #if defined(MBEDTLS_DEVICE_YIELD_WHEN_BUSY)
181 unsigned int devno );
void mbedtls_device_init(mbedtls_device_context *ctx)
Initialize an mbedtls device context.
Device context structure.
Compatibility names (set of defines)
mbedtls_device_context * p_mbedtls_device_context[MBEDTLS_DEVICE_COUNT]
Silicon Labs specific mbedtls error code definitions.
#define MBEDTLS_DEVICE_COUNT
int mbedtls_device_set_instance(mbedtls_device_context *ctx, unsigned int devno)
Set the device instance of an mbedtls device context.
void mbedtls_device_free(mbedtls_device_context *ctx)
Free an mbedtls device context.