Message ID | 1477571126-15915-2-git-send-email-marcelo.cerri@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/crypto/mcryptd.c b/crypto/mcryptd.c index fe5b495a..cfb68a8 100644 --- a/crypto/mcryptd.c +++ b/crypto/mcryptd.c @@ -526,6 +526,7 @@ static int mcryptd_create_hash(struct crypto_template *tmpl, struct rtattr **tb, inst->alg.halg.base.cra_flags = type; inst->alg.halg.digestsize = salg->digestsize; + inst->alg.halg.statesize = salg->statesize; inst->alg.halg.base.cra_ctxsize = sizeof(struct mcryptd_hash_ctx); inst->alg.halg.base.cra_init = mcryptd_hash_init_tfm;