Lines Matching refs:unprocessed_len
252 if( cmac_ctx->unprocessed_len > 0 && in mbedtls_cipher_cmac_update()
253 ilen > block_size - cmac_ctx->unprocessed_len ) in mbedtls_cipher_cmac_update()
255 memcpy( &cmac_ctx->unprocessed_block[cmac_ctx->unprocessed_len], in mbedtls_cipher_cmac_update()
257 block_size - cmac_ctx->unprocessed_len ); in mbedtls_cipher_cmac_update()
267 input += block_size - cmac_ctx->unprocessed_len; in mbedtls_cipher_cmac_update()
268 ilen -= block_size - cmac_ctx->unprocessed_len; in mbedtls_cipher_cmac_update()
269 cmac_ctx->unprocessed_len = 0; in mbedtls_cipher_cmac_update()
292 memcpy( &cmac_ctx->unprocessed_block[cmac_ctx->unprocessed_len], in mbedtls_cipher_cmac_update()
295 cmac_ctx->unprocessed_len += ilen; in mbedtls_cipher_cmac_update()
328 if( cmac_ctx->unprocessed_len < block_size ) in mbedtls_cipher_cmac_finish()
330 cmac_pad( M_last, block_size, last_block, cmac_ctx->unprocessed_len ); in mbedtls_cipher_cmac_finish()
355 cmac_ctx->unprocessed_len = 0; in mbedtls_cipher_cmac_finish()
373 cmac_ctx->unprocessed_len = 0; in mbedtls_cipher_cmac_reset()