Added two more tests to hit xmemset lines

This commit is contained in:
Ethan Looney
2020-06-29 09:48:22 -07:00
parent 6745733e2e
commit 7fb4a98009

View File

@@ -16400,6 +16400,10 @@ static int test_wc_curve448_export_private_raw_ex (void)
ret = 0;
}
}
if (ret == 0) {
ret = wc_curve448_export_private_raw_ex(&key, out, &outLen,
EC448_LITTLE_ENDIAN);
}
outLen = outLen - 2;
if (ret == 0) {
ret = wc_curve448_export_private_raw_ex(&key, out, &outLen, endian);
@@ -16492,6 +16496,11 @@ static int test_wc_curve448_import_private_raw_ex (void)
ret = 0;
}
}
if (ret == 0) {
ret = wc_curve448_import_private_raw_ex(priv, privSz, pub, pubSz,
&key, EC448_LITTLE_ENDIAN);
}
if (wc_FreeRng(&rng) != 0 && ret == 0) {
ret = WOLFSSL_FATAL_ERROR;