Lines Matching refs:unprocessed_len
260 if( cmac_ctx->unprocessed_len > 0 && in mbedtls_cipher_cmac_update()
261 ilen > block_size - cmac_ctx->unprocessed_len ) in mbedtls_cipher_cmac_update()
263 memcpy( &cmac_ctx->unprocessed_block[cmac_ctx->unprocessed_len], in mbedtls_cipher_cmac_update()
265 block_size - cmac_ctx->unprocessed_len ); in mbedtls_cipher_cmac_update()
275 input += block_size - cmac_ctx->unprocessed_len; in mbedtls_cipher_cmac_update()
276 ilen -= block_size - cmac_ctx->unprocessed_len; in mbedtls_cipher_cmac_update()
277 cmac_ctx->unprocessed_len = 0; in mbedtls_cipher_cmac_update()
300 memcpy( &cmac_ctx->unprocessed_block[cmac_ctx->unprocessed_len], in mbedtls_cipher_cmac_update()
303 cmac_ctx->unprocessed_len += ilen; in mbedtls_cipher_cmac_update()
336 if( cmac_ctx->unprocessed_len < block_size ) in mbedtls_cipher_cmac_finish()
338 cmac_pad( M_last, block_size, last_block, cmac_ctx->unprocessed_len ); in mbedtls_cipher_cmac_finish()
363 cmac_ctx->unprocessed_len = 0; in mbedtls_cipher_cmac_finish()
381 cmac_ctx->unprocessed_len = 0; in mbedtls_cipher_cmac_reset()