Skip to content

Commit

Permalink
crypto: geode - Consistently use AES_KEYSIZE_128
Browse files Browse the repository at this point in the history
Consistently use AES_KEYSIZE_128 instead of arbitrary defined value.

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>
  • Loading branch information
Marek Vasut authored and Herbert Xu committed May 22, 2014
1 parent bac79a2 commit 2e1fc34
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/crypto/geode-aes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 2e1fc34

Please sign in to comment.