]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: vmx - Fixing AES-CTR counter bug
authorLeonidas Da Silva Barbosa <leosilva@linux.vnet.ibm.com>
Fri, 14 Aug 2015 13:12:22 +0000 (10:12 -0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 18 Aug 2015 02:30:35 +0000 (10:30 +0800)
commit329500a6eb67cd6f23f99ec34cfd65a54950b601
tree32d1c470faed45f5e9c4aab679afdbe0615b997e
parentb34af69f6aa6656eebd1e40188f34f8e95f21518
crypto: vmx - Fixing AES-CTR counter bug

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.

Cc: stable@vger.kernel.org
Signed-off-by: Leonidas S Barbosa <leosilva@linux.vnet.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/vmx/aes_ctr.c
drivers/crypto/vmx/aesp8-ppc.pl