Skip to content

Commit

Permalink
crypto: qce - Set ivsize to 0 for ecb(aes)
Browse files Browse the repository at this point in the history
ECB transformations do not have an IV and hence set the ivsize to 0 for
ecb(aes).

Signed-off-by: Thara Gopinath <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
tharagopinath authored and herbertx committed Mar 7, 2021
1 parent 44b45cd commit 02d0dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/qce/skcipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ static const struct qce_skcipher_def skcipher_def[] = {
.name = "ecb(aes)",
.drv_name = "ecb-aes-qce",
.blocksize = AES_BLOCK_SIZE,
.ivsize = AES_BLOCK_SIZE,
.ivsize = 0,
.min_keysize = AES_MIN_KEY_SIZE,
.max_keysize = AES_MAX_KEY_SIZE,
},
Expand Down

0 comments on commit 02d0dae

Please sign in to comment.