Consistently use AES_KEYSIZE_128 instead of arbitrary defined value.

Signed-off-by: Marek Vasut <ma...@denx.de>
Cc: Benjamin Herrenschmidt <b...@kernel.crashing.org>
Cc: Dmitry Kasatkin <dmitry.kasat...@nokia.com>
Cc: Eric Bénard <e...@eukrea.com>
Cc: Jussi Kivilinna <jussi.kivili...@mbnet.fi>
Cc: Kent Yoder <k...@linux.vnet.ibm.com>
Cc: Michal Ludvig <mic...@logix.cz>
Cc: Varun Wadekar <vwade...@nvidia.com>
Cc: Vladimir Zapolskiy <vladimir_zapols...@mentor.com>
Cc: linux-ge...@lists.infradead.org
---
 drivers/crypto/geode-aes.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

NOTE: Geode guys, can you please test this change ?

diff --git a/drivers/crypto/geode-aes.h b/drivers/crypto/geode-aes.h
index 73e7b5f..f442ca9 100644
--- a/drivers/crypto/geode-aes.h
+++ b/drivers/crypto/geode-aes.h
@@ -10,8 +10,6 @@
 #define _GEODE_AES_H_
 
 /* driver logic flags */
-#define AES_KEY_LENGTH 16
-
 #define AES_MODE_ECB 0
 #define AES_MODE_CBC 1
 
@@ -62,7 +60,7 @@ struct geode_aes_op {
        u32 flags;
        int len;
 
-       u8 key[AES_KEY_LENGTH];
+       u8 key[AES_KEYSIZE_128];
        u8 *iv;
 
        union {
-- 
2.0.0.rc0

--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to