Merge pull request #3838 from guidovranken/zd11824

Return error code from sp_cond_swap_ct
This commit is contained in:
Sean Parkinson
2021-03-04 08:30:19 +10:00
committed by GitHub

View File

@@ -2481,7 +2481,7 @@ int sp_cond_swap_ct(sp_int * a, sp_int * b, int c, int m)
}
FREE_SP_INT(t, NULL);
return MP_OKAY;
return err;
}
#endif /* HAVE_ECC && ECC_TIMING_RESISTANT && !WC_NO_CACHE_RESISTANT */