Lines Matching refs:use_len

124                              size_t offset, size_t use_len,  in mbedtls_ccm_crypt()  argument
143 mbedtls_xor(output, input, tmp_buf + offset, use_len); in mbedtls_ccm_crypt()
294 size_t use_len, offset; in mbedtls_ccm_update_ad() local
324 use_len = 16 - offset; in mbedtls_ccm_update_ad()
326 if (use_len > add_len) { in mbedtls_ccm_update_ad()
327 use_len = add_len; in mbedtls_ccm_update_ad()
330 mbedtls_xor(ctx->y + offset, ctx->y + offset, add, use_len); in mbedtls_ccm_update_ad()
332 ctx->processed += use_len; in mbedtls_ccm_update_ad()
333 add_len -= use_len; in mbedtls_ccm_update_ad()
334 add += use_len; in mbedtls_ccm_update_ad()
336 if (use_len + offset == 16 || ctx->processed == ctx->add_len) { in mbedtls_ccm_update_ad()
365 size_t use_len, offset; in mbedtls_ccm_update() local
393 use_len = 16 - offset; in mbedtls_ccm_update()
395 if (use_len > input_len) { in mbedtls_ccm_update()
396 use_len = input_len; in mbedtls_ccm_update()
399 ctx->processed += use_len; in mbedtls_ccm_update()
403 mbedtls_xor(ctx->y + offset, ctx->y + offset, input, use_len); in mbedtls_ccm_update()
405 if (use_len + offset == 16 || ctx->processed == ctx->plaintext_len) { in mbedtls_ccm_update()
417 ret = mbedtls_ccm_crypt(ctx, offset, use_len, input, output); in mbedtls_ccm_update()
431 ret = mbedtls_ccm_crypt(ctx, offset, use_len, input, local_output); in mbedtls_ccm_update()
436 mbedtls_xor(ctx->y + offset, ctx->y + offset, local_output, use_len); in mbedtls_ccm_update()
438 memcpy(output, local_output, use_len); in mbedtls_ccm_update()
440 if (use_len + offset == 16 || ctx->processed == ctx->plaintext_len) { in mbedtls_ccm_update()
453 if (use_len + offset == 16 || ctx->processed == ctx->plaintext_len) { in mbedtls_ccm_update()
461 input_len -= use_len; in mbedtls_ccm_update()
462 input += use_len; in mbedtls_ccm_update()
463 output += use_len; in mbedtls_ccm_update()