| 3335 | } |
| 3336 | |
| 3337 | static void run_fe_mul(void) { |
| 3338 | int i; |
| 3339 | for (i = 0; i < 100 * COUNT; ++i) { |
| 3340 | secp256k1_fe a, b, c, d; |
| 3341 | random_fe(&a); |
| 3342 | random_field_element_magnitude(&a); |
| 3343 | random_fe(&b); |
| 3344 | random_field_element_magnitude(&b); |
| 3345 | random_fe_test(&c); |
| 3346 | random_field_element_magnitude(&c); |
| 3347 | random_fe_test(&d); |
| 3348 | random_field_element_magnitude(&d); |
| 3349 | test_fe_mul(&a, &a, 1); |
| 3350 | test_fe_mul(&c, &c, 1); |
| 3351 | test_fe_mul(&a, &b, 0); |
| 3352 | test_fe_mul(&a, &c, 0); |
| 3353 | test_fe_mul(&c, &b, 0); |
| 3354 | test_fe_mul(&c, &d, 0); |
| 3355 | } |
| 3356 | } |
| 3357 | |
| 3358 | static void run_sqr(void) { |
| 3359 | secp256k1_fe x, s; |
no test coverage detected