Re: [RFC] Unaligned CTR mode tests in crypto/testmgr.h

2013-10-31 Thread Jussi Kivilinna
On 30.10.2013 23:06, Joel Fernandes wrote: > On 10/30/2013 06:09 AM, Jussi Kivilinna wrote: >> On 30.10.2013 02:11, Joel Fernandes wrote: >>> Hi, >>> >>> Some tests such as test 5 in AES CTR mode in crypto/testmgr.h have a >>> unaligned >>> input buffer size such as 499 which is not aligned to any

Re: [RFC] Unaligned CTR mode tests in crypto/testmgr.h

2013-10-30 Thread Joel Fernandes
On 10/30/2013 06:09 AM, Jussi Kivilinna wrote: > On 30.10.2013 02:11, Joel Fernandes wrote: >> Hi, >> >> Some tests such as test 5 in AES CTR mode in crypto/testmgr.h have a >> unaligned >> input buffer size such as 499 which is not aligned to any > 0 power of 2. >> >> Due to this, omap-aes driver

RE: [RFC] Unaligned CTR mode tests in crypto/testmgr.h

2013-10-30 Thread Fernandes, Joel
> -Original Message- > From: Herbert Xu [mailto:herb...@gondor.hengli.com.au] > Sent: Tuesday, October 29, 2013 8:54 PM > To: Fernandes, Joel > Cc: jussi.kivili...@mbnet.fi; linux-crypto@vger.kernel.org > Subject: Re: [RFC] Unaligned CTR mode tests in crypto/testmgr.h &

Re: [RFC] Unaligned CTR mode tests in crypto/testmgr.h

2013-10-30 Thread Jussi Kivilinna
On 30.10.2013 02:11, Joel Fernandes wrote: > Hi, > > Some tests such as test 5 in AES CTR mode in crypto/testmgr.h have a unaligned > input buffer size such as 499 which is not aligned to any > 0 power of 2. > > Due to this, omap-aes driver, and I think atmel-aes too error out when > encryption i

Re: [RFC] Unaligned CTR mode tests in crypto/testmgr.h

2013-10-29 Thread Herbert Xu
Joel Fernandes wrote: > Hi, > > Some tests such as test 5 in AES CTR mode in crypto/testmgr.h have a unaligned > input buffer size such as 499 which is not aligned to any > 0 power of 2. > > Due to this, omap-aes driver, and I think atmel-aes too error out when > encryption is requested for thes

[RFC] Unaligned CTR mode tests in crypto/testmgr.h

2013-10-29 Thread Joel Fernandes
Hi, Some tests such as test 5 in AES CTR mode in crypto/testmgr.h have a unaligned input buffer size such as 499 which is not aligned to any > 0 power of 2. Due to this, omap-aes driver, and I think atmel-aes too error out when encryption is requested for these buffers. pr_err("request size is n