diff options
author | Stefan Berger <stefanb@linux.ibm.com> | 2024-04-04 10:18:51 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2024-04-12 15:07:52 +0800 |
commit | bf6dee7b3ce35bb8f1002a1833f42057e0983052 (patch) | |
tree | 186a2d413bacbfba877978feaca5e4624d4f1b6e /crypto/ecc.c | |
parent | 0de2c02d3cf9af5f08ae135b0c5f1ffd6464ff19 (diff) | |
download | linux-crypto-bf6dee7b3ce35bb8f1002a1833f42057e0983052.tar.gz linux-crypto-bf6dee7b3ce35bb8f1002a1833f42057e0983052.zip |
crypto: ecc - Add NIST P521 curve parameters
Add the parameters for the NIST P521 curve and define a new curve ID
for it. Make the curve available in ecc_get_curve.
Tested-by: Lukas Wunner <lukas@wunner.de>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ecc.c')
-rw-r--r-- | crypto/ecc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/ecc.c b/crypto/ecc.c index d15ef074..2e05387b 100644 --- a/crypto/ecc.c +++ b/crypto/ecc.c @@ -60,6 +60,8 @@ const struct ecc_curve *ecc_get_curve(unsigned int curve_id) return &nist_p256; case ECC_CURVE_NIST_P384: return &nist_p384; + case ECC_CURVE_NIST_P521: + return &nist_p521; default: return NULL; } |