Skip to content

Commit

Permalink
crypto: geode - Kill AES_IV_LENGTH
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marek Vasut authored and Herbert Xu committed May 22, 2014
1 parent b9d865e commit bac79a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/crypto/geode-aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
};
Expand Down
1 change: 0 additions & 1 deletion drivers/crypto/geode-aes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bac79a2

Please sign in to comment.