Re: [PATCH RFC v5 2/4] crypto: add PKE API
From: Herbert Xu
Date: Mon Jun 15 2015 - 19:55:17 EST
On Mon, Jun 15, 2015 at 01:18:42PM -0700, Tadeusz Struk wrote:
>
> +static int crypto_akcipher_report(struct sk_buff *skb, struct crypto_alg *alg)
> +{
> + struct crypto_report_akcipher rakcipher;
> +
> + strncpy(rakcipher.type, "akcipher", sizeof(rakcipher.type));
> + strncpy(rakcipher.subtype, alg->cra_name, sizeof(rakcipher.subtype));
There is no point in reporting cra_name. That's already taken care
of by crypto_user.c.
> +static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg)
> + __attribute__ ((unused));
> +
> +static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg)
> +{
> + seq_puts(m, "type : akcipher\n");
> + seq_printf(m, "subtype : %s\n", alg->cra_name);
Ditto please drop subtype.
Thanks,
--
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-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/