Consistently use AES_KEYSIZE_128 instead of arbitrary defined value.
Signed-off-by: Marek Vasut <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Dmitry Kasatkin <[email protected]>
Cc: Eric Bénard <[email protected]>
Cc: Jussi Kivilinna <[email protected]>
Cc: Kent Yoder <[email protected]>
Cc: Michal Ludvig <[email protected]>
Cc: Varun Wadekar <[email protected]>
Cc: Vladimir Zapolskiy <[email protected]>
Cc: [email protected]
---
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html