21 #ifndef MBEDTLS_CMAC_ALT_H
22 #define MBEDTLS_CMAC_ALT_H
24 #if !defined(MBEDTLS_CONFIG_FILE)
27 #include MBEDTLS_CONFIG_FILE
48 #if defined( MBEDTLS_CMAC_ALT )
56 #define MBEDTLS_ERR_CMAC_BAD_INPUT ((int)MBEDTLS_ERR_CMAC_BASE | 0x01)
57 #define MBEDTLS_ERR_CMAC_AUTH_FAILED ((int)MBEDTLS_ERR_CMAC_BASE | 0x02)
81 void mbedtls_cmac_init( mbedtls_cmac_context *ctx );
101 int mbedtls_cmac_set_device_instance(mbedtls_cmac_context* ctx,
121 int mbedtls_cmac_set_device_lock_wait_ticks(mbedtls_cmac_context *ctx,
134 int mbedtls_cmac_setkey( mbedtls_cmac_context *ctx,
136 const unsigned char *key,
137 unsigned int keybits );
144 void mbedtls_cmac_free( mbedtls_cmac_context *ctx );
165 int mbedtls_cmac_generate_tag( mbedtls_cmac_context *ctx,
166 const unsigned char *data,
186 int mbedtls_cmac_verify_tag( mbedtls_cmac_context *ctx,
187 const unsigned char *data,
192 #if defined(MBEDTLS_SELF_TEST) && defined(MBEDTLS_CMAC_C)
198 int mbedtls_cmac_self_test(
int verbose,
int device_instance );
Compatibility names (set of defines)
Definitions for AES based ciphers with CRYPTO hw acceleration.
Silicon Labs specific mbedTLS defintitions.