forked from wolfSSL/wolfssl
Addressed review comment about id being undefined
This commit is contained in:
@@ -22719,7 +22719,6 @@ static void test_wc_ecc_get_curve_id_from_dp_params(void)
|
|||||||
#if !defined(NO_ECC256) && !defined(NO_ECC_SECP)
|
#if !defined(NO_ECC256) && !defined(NO_ECC_SECP)
|
||||||
id = wc_ecc_get_curve_id_from_name("SECP256R1");
|
id = wc_ecc_get_curve_id_from_name("SECP256R1");
|
||||||
AssertIntEQ(id, ECC_SECP256R1);
|
AssertIntEQ(id, ECC_SECP256R1);
|
||||||
#endif
|
|
||||||
|
|
||||||
ecKey = wolfSSL_EC_KEY_new_by_curve_name(id);
|
ecKey = wolfSSL_EC_KEY_new_by_curve_name(id);
|
||||||
AssertNotNull(ecKey);
|
AssertNotNull(ecKey);
|
||||||
@@ -22734,7 +22733,7 @@ static void test_wc_ecc_get_curve_id_from_dp_params(void)
|
|||||||
curve_id = wc_ecc_get_curve_id_from_dp_params(params);
|
curve_id = wc_ecc_get_curve_id_from_dp_params(params);
|
||||||
AssertIntEQ(curve_id, id);
|
AssertIntEQ(curve_id, id);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
/* invalid case, NULL input*/
|
/* invalid case, NULL input*/
|
||||||
|
|
||||||
id = wc_ecc_get_curve_id_from_dp_params(NULL);
|
id = wc_ecc_get_curve_id_from_dp_params(NULL);
|
||||||
|
Reference in New Issue
Block a user