linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tadeusz Struk <tadeusz.struk@intel.com>
To: Herbert Xu <herbert@gondor.apana.org.au>,
	Linux Crypto Mailing List <linux-crypto@vger.kernel.org>,
	Kim Phillips <kim.phillips@freescale.com>,
	Cristian Stoica <cristian.stoica@freescale.com>
Subject: Re: crypto: caam - Clamp AEAD SG list by input length
Date: Mon, 08 Jun 2015 06:46:14 -0700	[thread overview]
Message-ID: <55759CA6.8070108@intel.com> (raw)
In-Reply-To: <20150608083824.GA26193@gondor.apana.org.au>

On 06/08/2015 01:38 AM, Herbert Xu wrote:
> +static inline struct sec4_sg_entry *sg_to_sec4_sg_len(
> +	struct scatterlist *sg, unsigned int total,
> +	struct sec4_sg_entry *sec4_sg_ptr)
> +{
> +	do {
> +		unsigned int len = min(sg_dma_len(sg), total);
> +
> +		dma_to_sec4_sg_one(sec4_sg_ptr, sg_dma_address(sg), len, 0);
> +		sec4_sg_ptr++;
> +		sg = sg_next(sg);
> +		total -= len;
> +	} while (total);
> +	return sec4_sg_ptr - 1;
> +}

Is req->assoclen guaranteed to be assoc->length aligned?

  reply	other threads:[~2015-06-08 13:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-08  8:38 crypto: caam - Clamp AEAD SG list by input length Herbert Xu
2015-06-08 13:46 ` Tadeusz Struk [this message]
2015-06-08 13:53   ` Herbert Xu
2015-06-08 14:34     ` Tadeusz Struk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55759CA6.8070108@intel.com \
    --to=tadeusz.struk@intel.com \
    --cc=cristian.stoica@freescale.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=kim.phillips@freescale.com \
    --cc=linux-crypto@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).