Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

crypto: shash - Use crypto_alg_extsize helper



This patch replaces crypto_shash_extsize function with
crypto_alg_extsize.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 38d21433
Loading
Loading
Loading
Loading
+1 −6
Original line number Original line Diff line number Diff line
@@ -520,11 +520,6 @@ static int crypto_shash_init_tfm(struct crypto_tfm *tfm)
	return 0;
	return 0;
}
}


static unsigned int crypto_shash_extsize(struct crypto_alg *alg)
{
	return alg->cra_ctxsize;
}

#ifdef CONFIG_NET
#ifdef CONFIG_NET
static int crypto_shash_report(struct sk_buff *skb, struct crypto_alg *alg)
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 = {
static const struct crypto_type crypto_shash_type = {
	.ctxsize = crypto_shash_ctxsize,
	.ctxsize = crypto_shash_ctxsize,
	.extsize = crypto_shash_extsize,
	.extsize = crypto_alg_extsize,
	.init = crypto_init_shash_ops,
	.init = crypto_init_shash_ops,
	.init_tfm = crypto_shash_init_tfm,
	.init_tfm = crypto_shash_init_tfm,
#ifdef CONFIG_PROC_FS
#ifdef CONFIG_PROC_FS