Re: [PATCH 1/2] Fixing vmx-crypto AES-CTR counter bug

2015-08-21 Thread Leonidas S Barbosa
On Fri, Aug 21, 2015 at 03:19:18PM -0400, Paul Gortmaker wrote: > On Fri, Aug 14, 2015 at 9:12 AM, Leonidas S Barbosa > wrote: > > AES-CTR is using a counter 8bytes-8bytes what miss match with > > kernel specs. > > > > In the previous code a vadduwm was done to increment counter. > > Replacing thi

Re: [PATCH 1/2] Fixing vmx-crypto AES-CTR counter bug

2015-08-21 Thread Paul Gortmaker
On Fri, Aug 14, 2015 at 9:12 AM, Leonidas S Barbosa wrote: > AES-CTR is using a counter 8bytes-8bytes what miss match with > kernel specs. > > In the previous code a vadduwm was done to increment counter. > Replacing this for a vadduqm now considering both cases counter > 8-8 bytes and full 16byte

Re: [PATCH 1/2] Fixing vmx-crypto AES-CTR counter bug

2015-08-17 Thread Herbert Xu
On Fri, Aug 14, 2015 at 10:12:22AM -0300, Leonidas S Barbosa wrote: > AES-CTR is using a counter 8bytes-8bytes what miss match with > kernel specs. > > In the previous code a vadduwm was done to increment counter. > Replacing this for a vadduqm now considering both cases counter > 8-8 bytes and fu

[PATCH 1/2] Fixing vmx-crypto AES-CTR counter bug

2015-08-14 Thread Leonidas S Barbosa
AES-CTR is using a counter 8bytes-8bytes what miss match with kernel specs. In the previous code a vadduwm was done to increment counter. Replacing this for a vadduqm now considering both cases counter 8-8 bytes and full 16bytes. Signed-off-by: Leonidas S Barbosa --- drivers/crypto/vmx/aes_ctr.