mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17:29 +02:00
ECC bench: can't use SAKKE curve with ECDH/ECDSA
Skip curve benchmarking when all curves are being benchmarked.
This commit is contained in:
@ -1900,6 +1900,14 @@ static void* benchmarks_do(void* args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
#ifdef WOLFCRYPT_HAVE_SAKKE
|
||||||
|
/* SAKKE is not useable with ECDH/ECDSA. Run separate test. */
|
||||||
|
if (curveId == ECC_SAKKE_1) {
|
||||||
|
curveId++;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (wc_ecc_get_curve_size_from_id(curveId) !=
|
if (wc_ecc_get_curve_size_from_id(curveId) !=
|
||||||
ECC_BAD_ARG_E) {
|
ECC_BAD_ARG_E) {
|
||||||
bench_ecc_curve(curveId);
|
bench_ecc_curve(curveId);
|
||||||
|
Reference in New Issue
Block a user