Lines Matching refs:state
193 mbedtls_platform_zeroize(cmac_ctx->state, sizeof(cmac_ctx->state)); in mbedtls_cipher_cmac_starts()
202 unsigned char *state; in mbedtls_cipher_cmac_update() local
213 state = ctx->cmac_ctx->state; in mbedtls_cipher_cmac_update()
227 mbedtls_xor_no_simd(state, cmac_ctx->unprocessed_block, state, block_size); in mbedtls_cipher_cmac_update()
229 if ((ret = mbedtls_cipher_update(ctx, state, block_size, state, in mbedtls_cipher_cmac_update()
245 mbedtls_xor_no_simd(state, input, state, block_size); in mbedtls_cipher_cmac_update()
247 if ((ret = mbedtls_cipher_update(ctx, state, block_size, state, in mbedtls_cipher_cmac_update()
272 unsigned char *state, *last_block; in mbedtls_cipher_cmac_finish() local
287 state = cmac_ctx->state; in mbedtls_cipher_cmac_finish()
305 mbedtls_xor(state, M_last, state, block_size); in mbedtls_cipher_cmac_finish()
306 if ((ret = mbedtls_cipher_update(ctx, state, block_size, state, in mbedtls_cipher_cmac_finish()
311 memcpy(output, state, block_size); in mbedtls_cipher_cmac_finish()
323 mbedtls_platform_zeroize(state, MBEDTLS_CMAC_MAX_BLOCK_SIZE); in mbedtls_cipher_cmac_finish()
341 mbedtls_platform_zeroize(cmac_ctx->state, in mbedtls_cipher_cmac_reset()
342 sizeof(cmac_ctx->state)); in mbedtls_cipher_cmac_reset()