Re: [PATCH v5 3/4] crypto: akcipher: add akcipher declarations needed by templates.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andrew Zaborowski <andrew.zaborowski@xxxxxxxxx> 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 <herbert@xxxxxxxxxxxxxxxxxxx>
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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux