crypto: vmx - IV size failing on skcipher API
authorLeonidas Da Silva Barbosa <leosilva@linux.vnet.ibm.com>
Mon, 27 Jun 2016 15:12:02 +0000 (09:12 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2016 06:27:48 +0000 (08:27 +0200)
commit3d390b83a990e688edc5682bee55c52ee46c6880
tree3a468b8c154cd05269cdeb2cf38b868aa3cd9493
parent1062520ea49aa89b42119e868d44a67699e3a552
crypto: vmx - IV size failing on skcipher API

[ Upstream commit 0d3d054b43719ef33232677ba27ba6097afdafbc ]

IV size was zero on CBC and CTR modes,
causing a bug triggered by skcipher.

Fixing this  adding a correct size.

Signed-off-by: Leonidas Da Silva Barbosa <leosilva@linux.vnet.ibm.com>
Signed-off-by: Paulo Smorigo <pfsmorigo@linux.vnet.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/vmx/aes_cbc.c
drivers/crypto/vmx/aes_ctr.c