Re: [PATCH] crypto: Fix next IV issue for CTS template

2017-02-17 Thread Ard Biesheuvel
> On 17 Feb 2017, at 10:06, Dennis Chen wrote: > >> On Fri, Feb 17, 2017 at 09:23:00AM +, Ard Biesheuvel wrote: >> >>> On 17 Feb 2017, at 09:17, Dennis Chen wrote: >>> >>> Hello Ard, >>> Morning! On Fri, Feb 17, 2017 at 07:12:46AM +, Ard Biesheuvel wrote: Hello Libo, >

Re: [PATCH] crypto: Fix next IV issue for CTS template

2017-02-17 Thread Dennis Chen
On Fri, Feb 17, 2017 at 09:23:00AM +, Ard Biesheuvel wrote: > > > On 17 Feb 2017, at 09:17, Dennis Chen wrote: > > > > Hello Ard, > > Morning! > >> On Fri, Feb 17, 2017 at 07:12:46AM +, Ard Biesheuvel wrote: > >> Hello Libo, > >> > >>> On 17 February 2017 at 03:47, wrote: > >>> From:

Re: [PATCH] crypto: Fix next IV issue for CTS template

2017-02-17 Thread Ard Biesheuvel
> On 17 Feb 2017, at 09:17, Dennis Chen wrote: > > Hello Ard, > Morning! >> On Fri, Feb 17, 2017 at 07:12:46AM +, Ard Biesheuvel wrote: >> Hello Libo, >> >>> On 17 February 2017 at 03:47, wrote: >>> From: Libo Wang >>> >>> CTS template assumes underlying CBC algorithm will carry out nex

Re: [PATCH] crypto: Fix next IV issue for CTS template

2017-02-17 Thread Dennis Chen
Hello Ard, Morning! On Fri, Feb 17, 2017 at 07:12:46AM +, Ard Biesheuvel wrote: > Hello Libo, > > On 17 February 2017 at 03:47, wrote: > > From: Libo Wang > > > > CTS template assumes underlying CBC algorithm will carry out next IV for > > further process.But some implementations of CBC alg

Re: [PATCH] crypto: Fix next IV issue for CTS template

2017-02-16 Thread Ard Biesheuvel
Hello Libo, On 17 February 2017 at 03:47, wrote: > From: Libo Wang > > CTS template assumes underlying CBC algorithm will carry out next IV for > further process.But some implementations of CBC algorithm in kernel break > this assumption, for example, some hardware crypto drivers ignore next IV

[PATCH] crypto: Fix next IV issue for CTS template

2017-02-16 Thread Libo.Wang
From: Libo Wang CTS template assumes underlying CBC algorithm will carry out next IV for further process.But some implementations of CBC algorithm in kernel break this assumption, for example, some hardware crypto drivers ignore next IV for performance consider, inthis case, tcry cts(cbc(aes)) te