crypto: ecc - Add NIST P384 curve parameters
authorSaulo Alessandre <saulo.alessandre@tse.jus.br>
Tue, 16 Mar 2021 21:07:33 +0000 (17:07 -0400)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Mar 2021 08:41:58 +0000 (19:41 +1100)
commit703c748d5f2c4f6d2b494405130d61b8275189cf
treec18473d089a22fd02d5cc7b79de93a30f235ddef
parent4e6602916bc692ee31ac5b8bd8195fb078556844
crypto: ecc - Add NIST P384 curve parameters

Add the parameters for the NIST P384 curve and define a new curve ID
for it. Make the curve available in ecc_get_curve.

Summary of changes:

* crypto/ecc_curve_defs.h
  - add nist_p384 params

* include/crypto/ecdh.h
  - add ECC_CURVE_NIST_P384

* crypto/ecc.c
  - change ecc_get_curve to accept nist_p384

Signed-off-by: Saulo Alessandre <saulo.alessandre@tse.jus.br>
Tested-by: Stefan Berger <stefanb@linux.ibm.com>
Acked-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/ecc.c
crypto/ecc_curve_defs.h
include/crypto/ecdh.h