aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2014-05-14 05:36:39 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2014-05-22 09:03:11 -0400
commitbac79a2a6189d85f830b424c3b0414a4df5235c2 (patch)
tree3b448deed31dd29d99108f1a2e2a5940aabbe3b8 /drivers/crypto
parentb9d865e331290dab97136413a9cf3465f3391ddf (diff)
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 <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>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/geode-aes.c2
-rw-r--r--drivers/crypto/geode-aes.h1
2 files changed, 1 insertions, 2 deletions
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 = {
408 .setkey = geode_setkey_blk, 408 .setkey = geode_setkey_blk,
409 .encrypt = geode_cbc_encrypt, 409 .encrypt = geode_cbc_encrypt,
410 .decrypt = geode_cbc_decrypt, 410 .decrypt = geode_cbc_decrypt,
411 .ivsize = AES_IV_LENGTH, 411 .ivsize = AES_BLOCK_SIZE,
412 } 412 }
413 } 413 }
414}; 414};
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 @@
10#define _GEODE_AES_H_ 10#define _GEODE_AES_H_
11 11
12/* driver logic flags */ 12/* driver logic flags */
13#define AES_IV_LENGTH 16
14#define AES_KEY_LENGTH 16 13#define AES_KEY_LENGTH 16
15 14
16#define AES_MODE_ECB 0 15#define AES_MODE_ECB 0