Messages in this thread | | | Date | Thu, 28 Jan 2021 16:03:54 +1100 | From | Herbert Xu <> | Subject | Re: [PATCH v7 4/7] crypto: add ecc curve and expose them |
| |
On Fri, Jan 22, 2021 at 03:09:52PM +0800, Meng Yu wrote: > 1. Add ecc curves(P224, P384, P521) for ECDH;
OK I think this is getting unwieldy.
In light of the fact that we already have hardware that supports a specific subset of curves, I think perhaps it would be better to move the curve ID from the key into the algorithm name instead.
IOW, instead of allocating ecdh, you would allocate ecdh-nist-pXXX.
Any comments?
Thanks, -- Email: Herbert Xu <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
| |