Make the cmac context a typedef

Make the cmac context a typedef, to be compatible with c code.
pull/10947/head
Ron Eldor 2019-07-23 16:01:27 +03:00
parent f492ce8405
commit 4e29c8f939
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@
extern "C" { extern "C" {
#endif #endif
struct mbedtls_cmac_context_t typedef struct mbedtls_cmac_context_t
{ {
SaSiAesUserContext_t CC_Context; SaSiAesUserContext_t CC_Context;
uint8_t CC_Key[SASI_AES_KEY_MAX_SIZE_IN_BYTES]; uint8_t CC_Key[SASI_AES_KEY_MAX_SIZE_IN_BYTES];
@ -40,7 +40,7 @@ struct mbedtls_cmac_context_t
size_t unprocessed_len; size_t unprocessed_len;
int is_cc_initiated; int is_cc_initiated;
}; } mbedtls_cmac_context_t;
#ifdef __cplusplus #ifdef __cplusplus
} }