MCPcopy Create free account
hub / github.com/ElementsProject/elements / run_fe_mul

Function run_fe_mul

src/secp256k1/src/tests.c:3337–3356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3335}
3336
3337static 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
3358static void run_sqr(void) {
3359 secp256k1_fe x, s;

Callers 1

mainFunction · 0.85

Calls 4

random_fe_testFunction · 0.85
test_fe_mulFunction · 0.85
random_feFunction · 0.70

Tested by

no test coverage detected