mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
crypto: vmx - IV size failing on skcipher API
[ Upstream commit 0d3d054b43 ]
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>
This commit is contained in:
parent
1062520ea4
commit
3d390b83a9
|
|
@ -191,7 +191,7 @@ struct crypto_alg p8_aes_cbc_alg = {
|
|||
.cra_init = p8_aes_cbc_init,
|
||||
.cra_exit = p8_aes_cbc_exit,
|
||||
.cra_blkcipher = {
|
||||
.ivsize = 0,
|
||||
.ivsize = AES_BLOCK_SIZE,
|
||||
.min_keysize = AES_MIN_KEY_SIZE,
|
||||
.max_keysize = AES_MAX_KEY_SIZE,
|
||||
.setkey = p8_aes_cbc_setkey,
|
||||
|
|
|
|||
|
|
@ -175,7 +175,7 @@ struct crypto_alg p8_aes_ctr_alg = {
|
|||
.cra_init = p8_aes_ctr_init,
|
||||
.cra_exit = p8_aes_ctr_exit,
|
||||
.cra_blkcipher = {
|
||||
.ivsize = 0,
|
||||
.ivsize = AES_BLOCK_SIZE,
|
||||
.min_keysize = AES_MIN_KEY_SIZE,
|
||||
.max_keysize = AES_MAX_KEY_SIZE,
|
||||
.setkey = p8_aes_ctr_setkey,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user