From: Marek Vasut Date: Wed, 14 May 2014 09:36:39 +0000 (+0200) Subject: crypto: geode - Kill AES_IV_LENGTH X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bac79a2a6189d85f830b424c3b0414a4df5235c2;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git crypto: geode - Kill AES_IV_LENGTH The AES IV length is always 128bits, just use the define from aes.h Signed-off-by: Marek Vasut Cc: Benjamin Herrenschmidt Cc: Dmitry Kasatkin Cc: Eric BĂ©nard Cc: Jussi Kivilinna Cc: Kent Yoder Cc: Michal Ludvig Cc: Varun Wadekar Cc: Vladimir Zapolskiy Cc: linux-geode@lists.infradead.org Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/geode-aes.c b/drivers/crypto/geode-aes.c index 32001d6b76ef..69e1b025b9a4 100644 --- a/drivers/crypto/geode-aes.c +++ b/drivers/crypto/geode-aes.c @@ -408,7 +408,7 @@ static struct crypto_alg geode_cbc_alg = { .setkey = geode_setkey_blk, .encrypt = geode_cbc_encrypt, .decrypt = geode_cbc_decrypt, - .ivsize = AES_IV_LENGTH, + .ivsize = AES_BLOCK_SIZE, } } }; diff --git a/drivers/crypto/geode-aes.h b/drivers/crypto/geode-aes.h index cedf2c5be118..73e7b5f0126f 100644 --- a/drivers/crypto/geode-aes.h +++ b/drivers/crypto/geode-aes.h @@ -10,7 +10,6 @@ #define _GEODE_AES_H_ /* driver logic flags */ -#define AES_IV_LENGTH 16 #define AES_KEY_LENGTH 16 #define AES_MODE_ECB 0