Lines Matching refs:offset
471 size_t use_len, offset; in mbedtls_gcm_update_ad() local
486 offset = ctx->add_len % 16; in mbedtls_gcm_update_ad()
489 if (offset != 0) { in mbedtls_gcm_update_ad()
490 use_len = 16 - offset; in mbedtls_gcm_update_ad()
495 mbedtls_xor(ctx->buf + offset, ctx->buf + offset, p, use_len); in mbedtls_gcm_update_ad()
497 if (offset + use_len == 16) { in mbedtls_gcm_update_ad()
536 size_t offset, size_t use_len, in gcm_mask() argument
554 mbedtls_xor(ctx->buf + offset, ctx->buf + offset, input, use_len); in gcm_mask()
556 mbedtls_xor(output, ectr + offset, input, use_len); in gcm_mask()
558 mbedtls_xor(ctx->buf + offset, ctx->buf + offset, output, use_len); in gcm_mask()
572 size_t offset; in mbedtls_gcm_update() local
603 offset = ctx->len % 16; in mbedtls_gcm_update()
604 if (offset != 0) { in mbedtls_gcm_update()
605 size_t use_len = 16 - offset; in mbedtls_gcm_update()
610 if ((ret = gcm_mask(ctx, ectr, offset, use_len, p, out_p)) != 0) { in mbedtls_gcm_update()
614 if (offset + use_len == 16) { in mbedtls_gcm_update()