Commit b64d143b authored by Herbert Xu's avatar Herbert Xu
Browse files

crypto: hash - Hide CRYPTO_ALG_TYPE_AHASH_MASK



Move the macro CRYPTO_ALG_TYPE_AHASH_MASK out of linux/crypto.h
and into crypto/ahash.c so that it's not visible to users of the
Crypto API.

Also remove the unused CRYPTO_ALG_TYPE_HASH_MASK macro.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent a1383e2a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -21,6 +21,8 @@

#include "hash.h"

#define CRYPTO_ALG_TYPE_AHASH_MASK	0x0000000e

static const struct crypto_type crypto_ahash_type;

struct ahash_request_priv {
+0 −2
Original line number Diff line number Diff line
@@ -35,8 +35,6 @@
#define CRYPTO_ALG_TYPE_SHASH		0x0000000e
#define CRYPTO_ALG_TYPE_AHASH		0x0000000f

#define CRYPTO_ALG_TYPE_HASH_MASK	0x0000000e
#define CRYPTO_ALG_TYPE_AHASH_MASK	0x0000000e
#define CRYPTO_ALG_TYPE_ACOMPRESS_MASK	0x0000000e

#define CRYPTO_ALG_LARVAL		0x00000010