Commit 02d0dae3 authored by Thara Gopinath's avatar Thara Gopinath Committed by Herbert Xu

crypto: qce - Set ivsize to 0 for ecb(aes)

ECB transformations do not have an IV and hence set the ivsize to 0 for
ecb(aes).
Signed-off-by: default avatarThara Gopinath <thara.gopinath@linaro.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 44b45cde
...@@ -353,7 +353,7 @@ static const struct qce_skcipher_def skcipher_def[] = { ...@@ -353,7 +353,7 @@ static const struct qce_skcipher_def skcipher_def[] = {
.name = "ecb(aes)", .name = "ecb(aes)",
.drv_name = "ecb-aes-qce", .drv_name = "ecb-aes-qce",
.blocksize = AES_BLOCK_SIZE, .blocksize = AES_BLOCK_SIZE,
.ivsize = AES_BLOCK_SIZE, .ivsize = 0,
.min_keysize = AES_MIN_KEY_SIZE, .min_keysize = AES_MIN_KEY_SIZE,
.max_keysize = AES_MAX_KEY_SIZE, .max_keysize = AES_MAX_KEY_SIZE,
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment