aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorMartin Hicks <mort@bork.org>2015-03-03 08:21:34 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2015-03-06 06:51:27 -0500
commitb3988618e0463cf9af30ac1b42b2601993be7c70 (patch)
tree5940721a951f1992e8e17f4773dd27495fd6625b /drivers/crypto
parentf641ddddc3ad139a91b9a1f9cea84ea657f75a6b (diff)
crypto: talitos - Remove MD5_BLOCK_SIZE
This is properly defined in the md5 header file. Signed-off-by: Martin Hicks <mort@bork.org> Acked-by: Kim Phillips <kim.phillips@freescale.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/talitos.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c
index 20ae97a919df..857414afa29a 100644
--- a/drivers/crypto/talitos.c
+++ b/drivers/crypto/talitos.c
@@ -637,8 +637,6 @@ static void talitos_unregister_rng(struct device *dev)
637#define TALITOS_MAX_KEY_SIZE 96 637#define TALITOS_MAX_KEY_SIZE 96
638#define TALITOS_MAX_IV_LENGTH 16 /* max of AES_BLOCK_SIZE, DES3_EDE_BLOCK_SIZE */ 638#define TALITOS_MAX_IV_LENGTH 16 /* max of AES_BLOCK_SIZE, DES3_EDE_BLOCK_SIZE */
639 639
640#define MD5_BLOCK_SIZE 64
641
642struct talitos_ctx { 640struct talitos_ctx {
643 struct device *dev; 641 struct device *dev;
644 int ch; 642 int ch;
@@ -2195,7 +2193,7 @@ static struct talitos_alg_template driver_algs[] = {
2195 .halg.base = { 2193 .halg.base = {
2196 .cra_name = "md5", 2194 .cra_name = "md5",
2197 .cra_driver_name = "md5-talitos", 2195 .cra_driver_name = "md5-talitos",
2198 .cra_blocksize = MD5_BLOCK_SIZE, 2196 .cra_blocksize = MD5_HMAC_BLOCK_SIZE,
2199 .cra_flags = CRYPTO_ALG_TYPE_AHASH | 2197 .cra_flags = CRYPTO_ALG_TYPE_AHASH |
2200 CRYPTO_ALG_ASYNC, 2198 CRYPTO_ALG_ASYNC,
2201 } 2199 }
@@ -2285,7 +2283,7 @@ static struct talitos_alg_template driver_algs[] = {
2285 .halg.base = { 2283 .halg.base = {
2286 .cra_name = "hmac(md5)", 2284 .cra_name = "hmac(md5)",
2287 .cra_driver_name = "hmac-md5-talitos", 2285 .cra_driver_name = "hmac-md5-talitos",
2288 .cra_blocksize = MD5_BLOCK_SIZE, 2286 .cra_blocksize = MD5_HMAC_BLOCK_SIZE,
2289 .cra_flags = CRYPTO_ALG_TYPE_AHASH | 2287 .cra_flags = CRYPTO_ALG_TYPE_AHASH |
2290 CRYPTO_ALG_ASYNC, 2288 CRYPTO_ALG_ASYNC,
2291 } 2289 }