[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150430224312.GA30417@gondor.apana.org.au>
Date: Fri, 1 May 2015 06:43:12 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Tadeusz Struk <tadeusz.struk@...el.com>
Cc: corbet@....net, keescook@...omium.org, qat-linux@...el.com,
jwboyer@...hat.com, richard@....at, d.kasatkin@...sung.com,
linux-kernel@...r.kernel.org, steved@...hat.com,
dhowells@...hat.com, vgoyal@...hat.com, james.l.morris@...cle.com,
jkosina@...e.cz, zohar@...ux.vnet.ibm.com, davem@...emloft.net,
jdelvare@...e.de, linux-crypto@...r.kernel.org
Subject: Re: [PATCH RFC 1/2] crypto: add PKE API
On Thu, Apr 30, 2015 at 03:36:52PM -0700, Tadeusz Struk wrote:
>
> +struct pke_alg {
> + int (*sign)(struct pke_request *pkereq);
> + int (*verify)(struct pke_request *pkereq);
> + int (*encrypt)(struct pke_request *pkereq);
> + int (*decrypt)(struct pke_request *pkereq);
> +
> + u8 pub_mpis; /* Number of MPIs in public key */
> + u8 sec_mpis; /* Number of MPIs in secret key */
> + u8 sig_mpis; /* Number of MPIs in a signature */
> +#define PKEY_CAN_ENCRYPT 0x01
> +#define PKEY_CAN_DECRYPT 0x02
> +#define PKEY_CAN_SIGN 0x04
> +#define PKEY_CAN_VERIFY 0x08
> + u8 capabilities;
> +};
Please remodel it after pcompress or the newly converted rng type.
This union stuff has been obsolete since 2008 and it's time for
it to die.
Thanks,
--
Email: Herbert Xu <herbert@...dor.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-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists