forked from wolfSSL/wolfssl
Added additonal tests to curve448.c
This commit is contained in:
@ -16107,7 +16107,6 @@ static int test_wc_curve448_init (void)
|
||||
return ret;
|
||||
|
||||
} /* END test_wc_curve448_init and wc_curve_448_free*/
|
||||
|
||||
/*
|
||||
* Testing wc_curve448_make_key
|
||||
*/
|
||||
@ -16123,11 +16122,9 @@ static int test_wc_curve448_make_key (void)
|
||||
printf(testingFmt, "wc_curve448_make_key()");
|
||||
|
||||
ret = wc_curve448_init(&key);
|
||||
|
||||
ret = wc_InitRng(&rng);
|
||||
if (ret == 0) {
|
||||
|
||||
|
||||
ret = wc_curve448_make_key(&rng, CURVE448_KEY_SIZE, &key);
|
||||
if (ret == 0) {
|
||||
keysize = wc_curve448_size(&key);
|
||||
@ -16187,13 +16184,11 @@ static int test_wc_curve448_import_private_raw_ex(void)
|
||||
|
||||
printf(testingFmt, "wc_curve448_import_private_raw_ex()");
|
||||
|
||||
|
||||
ret = wc_curve448_init(&key);
|
||||
|
||||
ret = wc_InitRng(&rng);
|
||||
if (ret == 0) {
|
||||
|
||||
|
||||
ret = wc_curve448_make_key(&rng, CURVE448_KEY_SIZE, &key);
|
||||
if (ret == 0){
|
||||
ret = wc_curve448_export_private_raw(&key, priv, &privSz);
|
||||
|
Reference in New Issue
Block a user