From: Juliusz Sosinowicz Date: Wed, 8 Mar 2023 17:18:48 +0000 (+0100) Subject: wolfSSL: More complete crypto_ec_key_group() X-Git-Tag: hostap_2_11~846 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de38571b86fb87a30eaa9947863c9b33eac91082;p=thirdparty%2Fhostap.git wolfSSL: More complete crypto_ec_key_group() Add more curves and check if brainpool support is built. Signed-off-by: Juliusz Sosinowicz --- diff --git a/src/crypto/crypto_wolfssl.c b/src/crypto/crypto_wolfssl.c index 4d5b302f1..356a8abe5 100644 --- a/src/crypto/crypto_wolfssl.c +++ b/src/crypto/crypto_wolfssl.c @@ -2110,12 +2110,20 @@ int crypto_ec_key_group(struct crypto_ec_key *key) return 20; case ECC_SECP521R1: return 21; + case ECC_SECP192R1: + return 25; + case ECC_SECP224R1: + return 26; +#ifdef HAVE_ECC_BRAINPOOL + case ECC_BRAINPOOLP224R1: + return 27; case ECC_BRAINPOOLP256R1: return 28; case ECC_BRAINPOOLP384R1: return 29; case ECC_BRAINPOOLP512R1: return 30; +#endif /* HAVE_ECC_BRAINPOOL */ } LOG_WOLF_ERROR_VA("Unsupported curve (id=%d) in EC key",