Home
last modified time | relevance | path

Searched refs:cmac_ctx (Results 1 – 3 of 3) sorted by relevance

/optee_os/lib/libmbedtls/mbedtls/library/
H A Dcmac.c158 mbedtls_cmac_context_t *cmac_ctx; in mbedtls_cipher_cmac_setup() local
162 cmac_ctx = mbedtls_calloc(1, sizeof(mbedtls_cmac_context_t)); in mbedtls_cipher_cmac_setup()
163 if (cmac_ctx == NULL) in mbedtls_cipher_cmac_setup()
166 ctx->cmac_ctx = cmac_ctx; in mbedtls_cipher_cmac_setup()
168 mbedtls_platform_zeroize(cmac_ctx->state, sizeof(cmac_ctx->state)); in mbedtls_cipher_cmac_setup()
200 if( ctx->cmac_ctx != NULL ) in mbedtls_cipher_cmac_starts()
209 mbedtls_cmac_context_t *cmac_ctx; in mbedtls_cipher_cmac_update() local
215 ctx->cmac_ctx == NULL) { in mbedtls_cipher_cmac_update()
219 cmac_ctx = ctx->cmac_ctx; in mbedtls_cipher_cmac_update()
221 state = ctx->cmac_ctx->state; in mbedtls_cipher_cmac_update()
[all …]
H A Dcipher.c233 if (ctx->cmac_ctx) { in mbedtls_cipher_free()
234 mbedtls_zeroize_and_free(ctx->cmac_ctx, in mbedtls_cipher_free()
269 if (dst->cmac_ctx != NULL && src->cmac_ctx != NULL) in mbedtls_cipher_clone()
270 memcpy(dst->cmac_ctx, src->cmac_ctx, sizeof(mbedtls_cmac_context_t)); in mbedtls_cipher_clone()
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
H A Dcipher.h354 mbedtls_cmac_context_t *MBEDTLS_PRIVATE(cmac_ctx);