mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
crypto: qat - fix aes-xts key sizes
commit10bb087ce3upstream. Increase value of supported key sizes for qat_aes_xts. aes-xts keys consists of keys of equal size concatenated. Fixes:def14bfaf3("crypto: qat - add support for ctr(aes) and xts(aes)") Reported-by: Wenqian Yu <wenqian.yu@intel.com> Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
71d27af29a
commit
ac069deaaa
@@ -1262,8 +1262,8 @@ static struct crypto_alg qat_algs[] = { {
|
|||||||
.setkey = qat_alg_ablkcipher_xts_setkey,
|
.setkey = qat_alg_ablkcipher_xts_setkey,
|
||||||
.decrypt = qat_alg_ablkcipher_decrypt,
|
.decrypt = qat_alg_ablkcipher_decrypt,
|
||||||
.encrypt = qat_alg_ablkcipher_encrypt,
|
.encrypt = qat_alg_ablkcipher_encrypt,
|
||||||
.min_keysize = AES_MIN_KEY_SIZE,
|
.min_keysize = 2 * AES_MIN_KEY_SIZE,
|
||||||
.max_keysize = AES_MAX_KEY_SIZE,
|
.max_keysize = 2 * AES_MAX_KEY_SIZE,
|
||||||
.ivsize = AES_BLOCK_SIZE,
|
.ivsize = AES_BLOCK_SIZE,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user