summaryrefslogtreecommitdiffstats
path: root/crypto/shash.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-04-20 07:39:01 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2015-04-21 04:19:54 +0200
commitac611680cb4f6fce26d97a79fd8aac3d42c5da91 (patch)
tree401b6c8fdefc4e2c51c199238ef9c6371a0f9ac1 /crypto/shash.c
parentcrypto: api - Add crypto_alg_extsize helper (diff)
downloadlinux-ac611680cb4f6fce26d97a79fd8aac3d42c5da91.tar.xz
linux-ac611680cb4f6fce26d97a79fd8aac3d42c5da91.zip
crypto: shash - Use crypto_alg_extsize helper
This patch replaces crypto_shash_extsize function with crypto_alg_extsize. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/shash.c')
-rw-r--r--crypto/shash.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/crypto/shash.c b/crypto/shash.c
index 47c713954bf3..ecb1e3d39bf0 100644
--- a/crypto/shash.c
+++ b/crypto/shash.c
@@ -520,11 +520,6 @@ static int crypto_shash_init_tfm(struct crypto_tfm *tfm)
return 0;
}
-static unsigned int crypto_shash_extsize(struct crypto_alg *alg)
-{
- return alg->cra_ctxsize;
-}
-
#ifdef CONFIG_NET
static int crypto_shash_report(struct sk_buff *skb, struct crypto_alg *alg)
{
@@ -564,7 +559,7 @@ static void crypto_shash_show(struct seq_file *m, struct crypto_alg *alg)
static const struct crypto_type crypto_shash_type = {
.ctxsize = crypto_shash_ctxsize,
- .extsize = crypto_shash_extsize,
+ .extsize = crypto_alg_extsize,
.init = crypto_init_shash_ops,
.init_tfm = crypto_shash_init_tfm,
#ifdef CONFIG_PROC_FS