crypto: talitos - Remove MD5_BLOCK_SIZE
authorMartin Hicks <mort@bork.org>
Tue, 3 Mar 2015 13:21:34 +0000 (08:21 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 6 Mar 2015 11:51:27 +0000 (22:51 +1100)
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>
drivers/crypto/talitos.c

index 20ae97a919df24faf01a32cf1ccb62640bff853f..857414afa29a823e88a6d1751a4f4075fcfaa7dd 100644 (file)
@@ -637,8 +637,6 @@ static void talitos_unregister_rng(struct device *dev)
 #define TALITOS_MAX_KEY_SIZE           96
 #define TALITOS_MAX_IV_LENGTH          16 /* max of AES_BLOCK_SIZE, DES3_EDE_BLOCK_SIZE */
 
-#define MD5_BLOCK_SIZE    64
-
 struct talitos_ctx {
        struct device *dev;
        int ch;
@@ -2195,7 +2193,7 @@ static struct talitos_alg_template driver_algs[] = {
                        .halg.base = {
                                .cra_name = "md5",
                                .cra_driver_name = "md5-talitos",
-                               .cra_blocksize = MD5_BLOCK_SIZE,
+                               .cra_blocksize = MD5_HMAC_BLOCK_SIZE,
                                .cra_flags = CRYPTO_ALG_TYPE_AHASH |
                                             CRYPTO_ALG_ASYNC,
                        }
@@ -2285,7 +2283,7 @@ static struct talitos_alg_template driver_algs[] = {
                        .halg.base = {
                                .cra_name = "hmac(md5)",
                                .cra_driver_name = "hmac-md5-talitos",
-                               .cra_blocksize = MD5_BLOCK_SIZE,
+                               .cra_blocksize = MD5_HMAC_BLOCK_SIZE,
                                .cra_flags = CRYPTO_ALG_TYPE_AHASH |
                                             CRYPTO_ALG_ASYNC,
                        }