Lines Matching refs:state
237 mbedtls_zeroize( cmac_ctx->state, sizeof( cmac_ctx->state ) ); in mbedtls_cipher_cmac_starts()
246 unsigned char *state; in mbedtls_cipher_cmac_update() local
256 state = ctx->cmac_ctx->state; in mbedtls_cipher_cmac_update()
267 cmac_xor_block( state, cmac_ctx->unprocessed_block, state, block_size ); in mbedtls_cipher_cmac_update()
269 if( ( ret = mbedtls_cipher_update( ctx, state, block_size, state, in mbedtls_cipher_cmac_update()
286 cmac_xor_block( state, input, state, block_size ); in mbedtls_cipher_cmac_update()
288 if( ( ret = mbedtls_cipher_update( ctx, state, block_size, state, in mbedtls_cipher_cmac_update()
313 unsigned char *state, *last_block; in mbedtls_cipher_cmac_finish() local
326 state = cmac_ctx->state; in mbedtls_cipher_cmac_finish()
347 cmac_xor_block( state, M_last, state, block_size ); in mbedtls_cipher_cmac_finish()
348 if( ( ret = mbedtls_cipher_update( ctx, state, block_size, state, in mbedtls_cipher_cmac_finish()
354 memcpy( output, state, block_size ); in mbedtls_cipher_cmac_finish()
366 mbedtls_zeroize( state, MBEDTLS_CIPHER_BLKSIZE_MAX ); in mbedtls_cipher_cmac_finish()
383 mbedtls_zeroize( cmac_ctx->state, in mbedtls_cipher_cmac_reset()
384 sizeof( cmac_ctx->state ) ); in mbedtls_cipher_cmac_reset()