forked from wolfSSL/wolfssl
Removed comment, deleted redundent WC_RNG initialization and fixed indentation
This commit is contained in:
@@ -16193,7 +16193,7 @@ static int test_wc_curve448_make_key (void)
|
|||||||
/*
|
/*
|
||||||
* Testing test_wc_curve448_shared_secret_ex
|
* Testing test_wc_curve448_shared_secret_ex
|
||||||
*/
|
*/
|
||||||
static int test_wc_curve448_shared_secret_ex (void) //ethan-3
|
static int test_wc_curve448_shared_secret_ex (void)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
#if defined(HAVE_CURVE448)
|
#if defined(HAVE_CURVE448)
|
||||||
@@ -16211,15 +16211,11 @@ static int test_wc_curve448_shared_secret_ex (void) //ethan-3
|
|||||||
if (ret == 0){
|
if (ret == 0){
|
||||||
ret = wc_curve448_make_key(&rng, CURVE448_KEY_SIZE, &private_key);
|
ret = wc_curve448_make_key(&rng, CURVE448_KEY_SIZE, &private_key);
|
||||||
}
|
}
|
||||||
if (wc_FreeRng(&rng) && ret == 0) {
|
|
||||||
ret = WOLFSSL_FATAL_ERROR;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (ret == 0){
|
if (ret == 0){
|
||||||
ret = wc_curve448_init(&public_key);
|
ret = wc_curve448_init(&public_key);
|
||||||
}
|
}
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
ret = wc_InitRng(&rng);
|
|
||||||
if (ret == 0){
|
if (ret == 0){
|
||||||
ret = wc_curve448_make_key(&rng, CURVE448_KEY_SIZE, &public_key);
|
ret = wc_curve448_make_key(&rng, CURVE448_KEY_SIZE, &public_key);
|
||||||
}
|
}
|
||||||
@@ -16281,8 +16277,6 @@ static int test_wc_curve448_shared_secret_ex (void) //ethan-3
|
|||||||
#endif
|
#endif
|
||||||
return ret;
|
return ret;
|
||||||
} /*END test_wc_curve448_shared_secret_ex*/
|
} /*END test_wc_curve448_shared_secret_ex*/
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Testing test_wc_curve448_export_public_ex
|
* Testing test_wc_curve448_export_public_ex
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user