• Home
  • Raw
  • Download

Lines Matching refs:use_len

111                               size_t offset, size_t use_len,  in mbedtls_ccm_crypt()  argument
128 for( i = 0; i < use_len; i++ ) in mbedtls_ccm_crypt()
273 size_t olen, use_len, offset; in mbedtls_ccm_update_ad() local
308 use_len = 16 - offset; in mbedtls_ccm_update_ad()
310 if( use_len > add_len ) in mbedtls_ccm_update_ad()
311 use_len = add_len; in mbedtls_ccm_update_ad()
313 for( i = 0; i < use_len; i++ ) in mbedtls_ccm_update_ad()
316 ctx->processed += use_len; in mbedtls_ccm_update_ad()
317 add_len -= use_len; in mbedtls_ccm_update_ad()
318 add += use_len; in mbedtls_ccm_update_ad()
320 if( use_len + offset == 16 || ctx->processed == ctx->add_len ) in mbedtls_ccm_update_ad()
347 size_t use_len, offset, olen; in mbedtls_ccm_update() local
374 use_len = 16 - offset; in mbedtls_ccm_update()
376 if( use_len > input_len ) in mbedtls_ccm_update()
377 use_len = input_len; in mbedtls_ccm_update()
379 ctx->processed += use_len; in mbedtls_ccm_update()
384 for( i = 0; i < use_len; i++ ) in mbedtls_ccm_update()
387 if( use_len + offset == 16 || ctx->processed == ctx->plaintext_len ) in mbedtls_ccm_update()
396 ret = mbedtls_ccm_crypt( ctx, offset, use_len, input, output ); in mbedtls_ccm_update()
410 ret = mbedtls_ccm_crypt( ctx, offset, use_len, input, local_output ); in mbedtls_ccm_update()
414 for( i = 0; i < use_len; i++ ) in mbedtls_ccm_update()
417 memcpy( output, local_output, use_len ); in mbedtls_ccm_update()
420 if( use_len + offset == 16 || ctx->processed == ctx->plaintext_len ) in mbedtls_ccm_update()
430 if( use_len + offset == 16 || ctx->processed == ctx->plaintext_len ) in mbedtls_ccm_update()
437 input_len -= use_len; in mbedtls_ccm_update()
438 input += use_len; in mbedtls_ccm_update()
439 output += use_len; in mbedtls_ccm_update()