Skip to content

Commit 10bb087

Browse files
gcabidduherbertx
authored andcommitted
crypto: qat - fix aes-xts key sizes
Increase value of supported key sizes for qat_aes_xts. aes-xts keys consists of keys of equal size concatenated. Fixes: def14bf ("crypto: qat - add support for ctr(aes) and xts(aes)") Cc: [email protected] Reported-by: Wenqian Yu <[email protected]> Signed-off-by: Giovanni Cabiddu <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent f74bdd4 commit 10bb087

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/crypto/qat/qat_common/qat_algs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,8 +1260,8 @@ static struct crypto_alg qat_algs[] = { {
12601260
.setkey = qat_alg_ablkcipher_xts_setkey,
12611261
.decrypt = qat_alg_ablkcipher_decrypt,
12621262
.encrypt = qat_alg_ablkcipher_encrypt,
1263-
.min_keysize = AES_MIN_KEY_SIZE,
1264-
.max_keysize = AES_MAX_KEY_SIZE,
1263+
.min_keysize = 2 * AES_MIN_KEY_SIZE,
1264+
.max_keysize = 2 * AES_MAX_KEY_SIZE,
12651265
.ivsize = AES_BLOCK_SIZE,
12661266
},
12671267
},

0 commit comments

Comments
 (0)