Commit 6d1b41fc authored by Eric Biggers's avatar Eric Biggers Committed by Herbert Xu

crypto: ahash - unexport crypto_ahash_type

Now that all the templates that need ahash spawns have been converted to
use crypto_grab_ahash() rather than look up the algorithm directly,
crypto_ahash_type is no longer used outside of ahash.c.  Make it static.
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 629f1afc
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
#include "internal.h" #include "internal.h"
static const struct crypto_type crypto_ahash_type;
struct ahash_request_priv { struct ahash_request_priv {
crypto_completion_t complete; crypto_completion_t complete;
void *data; void *data;
...@@ -542,7 +544,7 @@ static void crypto_ahash_show(struct seq_file *m, struct crypto_alg *alg) ...@@ -542,7 +544,7 @@ static void crypto_ahash_show(struct seq_file *m, struct crypto_alg *alg)
__crypto_hash_alg_common(alg)->digestsize); __crypto_hash_alg_common(alg)->digestsize);
} }
const struct crypto_type crypto_ahash_type = { static const struct crypto_type crypto_ahash_type = {
.extsize = crypto_ahash_extsize, .extsize = crypto_ahash_extsize,
.init_tfm = crypto_ahash_init_tfm, .init_tfm = crypto_ahash_init_tfm,
#ifdef CONFIG_PROC_FS #ifdef CONFIG_PROC_FS
...@@ -554,7 +556,6 @@ const struct crypto_type crypto_ahash_type = { ...@@ -554,7 +556,6 @@ const struct crypto_type crypto_ahash_type = {
.type = CRYPTO_ALG_TYPE_AHASH, .type = CRYPTO_ALG_TYPE_AHASH,
.tfmsize = offsetof(struct crypto_ahash, base), .tfmsize = offsetof(struct crypto_ahash, base),
}; };
EXPORT_SYMBOL_GPL(crypto_ahash_type);
int crypto_grab_ahash(struct crypto_ahash_spawn *spawn, int crypto_grab_ahash(struct crypto_ahash_spawn *spawn,
struct crypto_instance *inst, struct crypto_instance *inst,
......
...@@ -57,8 +57,6 @@ struct crypto_shash_spawn { ...@@ -57,8 +57,6 @@ struct crypto_shash_spawn {
struct crypto_spawn base; struct crypto_spawn base;
}; };
extern const struct crypto_type crypto_ahash_type;
int crypto_hash_walk_done(struct crypto_hash_walk *walk, int err); int crypto_hash_walk_done(struct crypto_hash_walk *walk, int err);
int crypto_hash_walk_first(struct ahash_request *req, int crypto_hash_walk_first(struct ahash_request *req,
struct crypto_hash_walk *walk); struct crypto_hash_walk *walk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment