crypto: geode - Kill AES_IV_LENGTH
authorMarek Vasut <marex@denx.de>
Wed, 14 May 2014 09:36:39 +0000 (11:36 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 May 2014 13:03:11 +0000 (21:03 +0800)
The AES IV length is always 128bits, just use the define from aes.h

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
Cc: Eric BĂ©nard <eric@eukrea.com>
Cc: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Cc: Kent Yoder <key@linux.vnet.ibm.com>
Cc: Michal Ludvig <michal@logix.cz>
Cc: Varun Wadekar <vwadekar@nvidia.com>
Cc: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Cc: linux-geode@lists.infradead.org
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/geode-aes.c
drivers/crypto/geode-aes.h

index 32001d6b76ef1851c18e826e189d1e1ff9829a59..69e1b025b9a4d645c4bccc97b36c81b19640dfe5 100644 (file)
@@ -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,
                }
        }
 };
index cedf2c5be118c826e8c47aef1c79756874adc582..73e7b5f0126fa0a1b5ae5829aa6a16b87e1106d8 100644 (file)
@@ -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