diff options
author | Corentin LABBE <clabbe.montjoie@gmail.com> | 2017-05-19 08:53:25 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-05-23 06:52:07 +0200 |
commit | bb9634df0526593f60294f6f3c90787f7d4df7b0 (patch) | |
tree | 2f283e93e60a22409a6dcbbdea067ab8417f107d /drivers/crypto/ixp4xx_crypto.c | |
parent | crypto: brcm - Use IPAD/OPAD constant (diff) | |
download | linux-bb9634df0526593f60294f6f3c90787f7d4df7b0.tar.xz linux-bb9634df0526593f60294f6f3c90787f7d4df7b0.zip |
crypto: ixp4xx - Use IPAD/OPAD constant
This patch simply replace all occurrence of HMAC IPAD/OPAD value by their
define.
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r-- | drivers/crypto/ixp4xx_crypto.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/crypto/ixp4xx_crypto.c b/drivers/crypto/ixp4xx_crypto.c index 771dd26c7076..427cbe012729 100644 --- a/drivers/crypto/ixp4xx_crypto.c +++ b/drivers/crypto/ixp4xx_crypto.c @@ -23,6 +23,7 @@ #include <crypto/ctr.h> #include <crypto/des.h> #include <crypto/aes.h> +#include <crypto/hmac.h> #include <crypto/sha.h> #include <crypto/algapi.h> #include <crypto/internal/aead.h> @@ -90,8 +91,6 @@ #define CTL_FLAG_PERFORM_AEAD 0x0008 #define CTL_FLAG_MASK 0x000f -#define HMAC_IPAD_VALUE 0x36 -#define HMAC_OPAD_VALUE 0x5C #define HMAC_PAD_BLOCKLEN SHA1_BLOCK_SIZE #define MD5_DIGEST_SIZE 16 |