]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wolfSSL: More complete crypto_ec_key_group()
authorJuliusz Sosinowicz <juliusz@wolfssl.com>
Wed, 8 Mar 2023 17:18:48 +0000 (18:18 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 4 Nov 2023 16:18:25 +0000 (18:18 +0200)
Add more curves and check if brainpool support is built.

Signed-off-by: Juliusz Sosinowicz <juliusz@wolfssl.com>
src/crypto/crypto_wolfssl.c

index 4d5b302f198cd0896cda1e8fd309fb5ac03b625f..356a8abe5bb6b43f7d3fa4324ce0a1e50db7541e 100644 (file)
@@ -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",