Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1281069 > unrolled thread
| Started by | Tim Chen <tim.c.chen@linux.intel.com> |
|---|---|
| First post | 2015-12-01 18:30 +0100 |
| Last post | 2015-12-02 21:10 +0100 |
| Articles | 2 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v3 5/5] crypto: AES CBC multi-buffer glue code Tim Chen <tim.c.chen@linux.intel.com> - 2015-12-01 18:30 +0100
Re: [PATCH v3 5/5] crypto: AES CBC multi-buffer glue code Tim Chen <tim.c.chen@linux.intel.com> - 2015-12-02 21:10 +0100
| From | Tim Chen <tim.c.chen@linux.intel.com> |
|---|---|
| Date | 2015-12-01 18:30 +0100 |
| Subject | Re: [PATCH v3 5/5] crypto: AES CBC multi-buffer glue code |
| Message-ID | <qAWUy-49J-13@gated-at.bofh.it> |
On Thu, 2015-11-26 at 16:49 +0800, Herbert Xu wrote: > On Tue, Nov 24, 2015 at 10:30:06AM -0800, Tim Chen wrote: > > > > On the decrypt path, we don't need to use multi-buffer algorithm > > as aes-cbc decrypt can be parallelized inherently on a single > > request. So most of the time the outer layer algorithm > > cbc_mb_async_ablk_decrypt can bypass mcryptd and > > invoke mb_aes_cbc_decrypt synchronously > > to do aes_cbc_dec when fpu is available. > > This avoids the overhead of going through mcryptd. Hence > > the use of blkcipher on the inner layer. For the mcryptd > > path, we will complete a decrypt request in one shot so > > blkcipher usage should be fine. > > I think there is a misunderstanding here. Just because you're > using/exporting through the ablkcipher interface doesn't mean > that you are asynchrounous. For example, all blkcipher algorithms > can be accessed through the ablkcipher interface and they of course > remain synchrounous. > > So I don't see how using an ablkcipher in the inner layer changes > anything at all. You can still return immediately and not bother > with completion functions when you are synchrounous. > > Cheers, OK, I'll try to see if I can cast things back to the original ablkcipher request and use that to walk the sg list. 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/
[toc] | [next] | [standalone]
| From | Tim Chen <tim.c.chen@linux.intel.com> |
|---|---|
| Date | 2015-12-02 21:10 +0100 |
| Message-ID | <qBlSW-3wb-13@gated-at.bofh.it> |
| In reply to | #1281069 |
On Tue, 2015-12-01 at 09:19 -0800, Tim Chen wrote: > On Thu, 2015-11-26 at 16:49 +0800, Herbert Xu wrote: > > On Tue, Nov 24, 2015 at 10:30:06AM -0800, Tim Chen wrote: > > > > > > On the decrypt path, we don't need to use multi-buffer algorithm > > > as aes-cbc decrypt can be parallelized inherently on a single > > > request. So most of the time the outer layer algorithm > > > cbc_mb_async_ablk_decrypt can bypass mcryptd and > > > invoke mb_aes_cbc_decrypt synchronously > > > to do aes_cbc_dec when fpu is available. > > > This avoids the overhead of going through mcryptd. Hence > > > the use of blkcipher on the inner layer. For the mcryptd > > > path, we will complete a decrypt request in one shot so > > > blkcipher usage should be fine. > > > > I think there is a misunderstanding here. Just because you're > > using/exporting through the ablkcipher interface doesn't mean > > that you are asynchrounous. For example, all blkcipher algorithms > > can be accessed through the ablkcipher interface and they of course > > remain synchrounous. > > > > So I don't see how using an ablkcipher in the inner layer changes > > anything at all. You can still return immediately and not bother > > with completion functions when you are synchrounous. > > > > Cheers, > > OK, I'll try to see if I can cast things back to the original ablkcipher > request and use that to walk the sg list. > Herbert, I've sent out a new version of this series to use ablkcipher on the inner layer of decrypt. 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/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web