Andrew Zaborowski <andrew.zaborow...@intel.com> wrote: > > @@ -75,9 +76,22 @@ static int crypto_akcipher_init_tfm(struct crypto_tfm *tfm) > return 0; > } > > +static void crypto_akcipher_free_instance(struct crypto_instance *inst) > +{ > + struct akcipher_instance *akcipher = akcipher_instance(inst); > + > + if (!akcipher->free) { > + inst->tmpl->free(inst); > + return; > + }
You don't need this bit. AEAD has it because there were legacy templates but you are starting from a clean slate. Cheers, -- Email: Herbert Xu <herb...@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html