Re: [PATCH v3 5/5] crypto: AES CBC multi-buffer glue code

2015-12-02 Thread Tim Chen
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 inherentl

Re: [PATCH v3 5/5] crypto: AES CBC multi-buffer glue code

2015-12-01 Thread Tim Chen
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 lay

Re: [PATCH v3 5/5] crypto: AES CBC multi-buffer glue code

2015-11-26 Thread Herbert Xu
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

Re: [PATCH v3 5/5] crypto: AES CBC multi-buffer glue code

2015-11-24 Thread Tim Chen
On Tue, 2015-11-24 at 17:47 +0800, Herbert Xu wrote: > On Thu, Nov 19, 2015 at 02:15:40PM -0800, Tim Chen wrote: > > > > This patch introduces the multi-buffer job manager which is responsible > > for submitting scatter-gather buffers from several AES CBC jobs > > to the multi-buffer algorithm. Th

Re: [PATCH v3 5/5] crypto: AES CBC multi-buffer glue code

2015-11-24 Thread Herbert Xu
On Thu, Nov 19, 2015 at 02:15:40PM -0800, Tim Chen wrote: > > This patch introduces the multi-buffer job manager which is responsible > for submitting scatter-gather buffers from several AES CBC jobs > to the multi-buffer algorithm. The glue code interfaces with the > underlying algorithm that han

[PATCH v3 5/5] crypto: AES CBC multi-buffer glue code

2015-11-19 Thread Tim Chen
This patch introduces the multi-buffer job manager which is responsible for submitting scatter-gather buffers from several AES CBC jobs to the multi-buffer algorithm. The glue code interfaces with the underlying algorithm that handles 8 data streams of AES CBC encryption in parallel. AES key expan