Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1289023
| From | Tim Chen <tim.c.chen@linux.intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v4 5/5] crypto: AES CBC multi-buffer glue code |
| Date | 2015-12-11 00:50 +0100 |
| Message-ID | <qEj8d-4Em-11@gated-at.bofh.it> (permalink) |
| References | <qBlSW-3wb-9@gated-at.bofh.it> <qBlSW-3wb-23@gated-at.bofh.it> <qDD8Z-2iB-5@gated-at.bofh.it> <qDQIX-2Tz-29@gated-at.bofh.it> <qDYwO-7Pf-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, 2015-12-10 at 09:45 +0800, Herbert Xu wrote:
> On Wed, Dec 09, 2015 at 09:23:14AM -0800, Tim Chen wrote:
> >
> > This is an internal algorithm. We are indeed casting the request
> > to the outer ablkcipher request when we do the async cipher walk.
>
> The question remain: why does it have to be a blkcipher rather
> than an ablkcipher?
>
> Cheers,
The inner cipher is called synchronously from the outer layer
async cipher algorithm in cbc_mb_async_ablk_decrypt via
err = crypto_blkcipher_crt(child_tfm)->decrypt(
&rctx->desc, req->dst, req->src, req->nbytes);
or directly by mcrytpd_queue_worker via mcryptd_blkcipher_crypt. We
do not allow this operation to return something like EINPROGRESS.
But the walk of the scattered list is done with async walk.
Thanks.
Tim
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v4 5/5] crypto: AES CBC multi-buffer glue code Tim Chen <tim.c.chen@linux.intel.com> - 2015-12-02 21:10 +0100
Re: [PATCH v4 5/5] crypto: AES CBC multi-buffer glue code Herbert Xu <herbert@gondor.apana.org.au> - 2015-12-09 04:00 +0100
Re: [PATCH v4 5/5] crypto: AES CBC multi-buffer glue code Tim Chen <tim.c.chen@linux.intel.com> - 2015-12-09 18:30 +0100
Re: [PATCH v4 5/5] crypto: AES CBC multi-buffer glue code Herbert Xu <herbert@gondor.apana.org.au> - 2015-12-10 02:50 +0100
Re: [PATCH v4 5/5] crypto: AES CBC multi-buffer glue code Tim Chen <tim.c.chen@linux.intel.com> - 2015-12-11 00:50 +0100
Re: [PATCH v4 5/5] crypto: AES CBC multi-buffer glue code Herbert Xu <herbert@gondor.apana.org.au> - 2015-12-11 04:30 +0100
Re: [PATCH v4 5/5] crypto: AES CBC multi-buffer glue code Tim Chen <tim.c.chen@linux.intel.com> - 2015-12-11 18:00 +0100
csiph-web