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

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

crypto: seqiv - Fix IV size in context size calculation



This patch fixes a bug in the context size calculation where we
were still referring to the old cra_aead.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 661cfd0e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -812,7 +812,7 @@ static int seqniv_create(struct crypto_template *tmpl, struct rtattr **tb)

	inst->alg.base.cra_alignmask |= __alignof__(u32) - 1;
	inst->alg.base.cra_ctxsize = sizeof(struct seqiv_aead_ctx);
	inst->alg.base.cra_ctxsize += inst->alg.base.cra_aead.ivsize;
	inst->alg.base.cra_ctxsize += inst->alg.ivsize;

done:
	err = aead_register_instance(tmpl, inst);