wolfssl: Correctly enable Brainpool curves
This commit is contained in:
@@ -333,7 +333,7 @@ wolfssl_ec_diffie_hellman_t *wolfssl_ec_diffie_hellman_create(diffie_hellman_gro
|
|||||||
this->curve_id = ECC_SECP521R1;
|
this->curve_id = ECC_SECP521R1;
|
||||||
this->keysize = (521 + 7) / 8;
|
this->keysize = (521 + 7) / 8;
|
||||||
break;
|
break;
|
||||||
#ifdef HAVE_BRAINPOOL
|
#ifdef HAVE_ECC_BRAINPOOL
|
||||||
case ECP_224_BP:
|
case ECP_224_BP:
|
||||||
this->curve_id = ECC_BRAINPOOLP224R1;
|
this->curve_id = ECC_BRAINPOOLP224R1;
|
||||||
this->keysize = 224 / 8;
|
this->keysize = 224 / 8;
|
||||||
|
|||||||
@@ -209,8 +209,8 @@ METHOD(plugin_t, get_features, int,
|
|||||||
#if defined(HAVE_ECC192) || defined(HAVE_ALL_CURVES)
|
#if defined(HAVE_ECC192) || defined(HAVE_ALL_CURVES)
|
||||||
PLUGIN_PROVIDE(DH, ECP_192_BIT),
|
PLUGIN_PROVIDE(DH, ECP_192_BIT),
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_BRAINPOOL
|
#ifdef HAVE_ECC_BRAINPOOL
|
||||||
#if !define(NO_ECC256) || defined(HAVE_ALL_CURVES)
|
#if !defined(NO_ECC256) || defined(HAVE_ALL_CURVES)
|
||||||
PLUGIN_PROVIDE(DH, ECP_256_BP),
|
PLUGIN_PROVIDE(DH, ECP_256_BP),
|
||||||
#endif
|
#endif
|
||||||
#if defined(HAVE_ECC384) || defined(HAVE_ALL_CURVES)
|
#if defined(HAVE_ECC384) || defined(HAVE_ALL_CURVES)
|
||||||
|
|||||||
Reference in New Issue
Block a user