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

Function random_group_element_test

src/secp256k1/src/tests.c:124–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124static void random_group_element_test(secp256k1_ge *ge) {
125 secp256k1_fe fe;
126 do {
127 random_fe_test(&fe);
128 if (secp256k1_ge_set_xo_var(ge, &fe, secp256k1_testrand_bits(1))) {
129 secp256k1_fe_normalize(&ge->y);
130 break;
131 }
132 } while(1);
133 ge->infinity = 0;
134}
135
136static void random_group_element_jacobian_test(secp256k1_gej *gej, const secp256k1_ge *ge) {
137 secp256k1_fe z2, z3;

Callers 13

random_gej_testFunction · 0.85
test_geFunction · 0.85
test_intialized_infFunction · 0.85
test_ecmult_targetFunction · 0.85
ecmult_const_mult_xonlyFunction · 0.85
test_ecmult_multiFunction · 0.85
test_ecmult_multi_randomFunction · 0.85
run_ellswift_testsFunction · 0.85

Calls 4

random_fe_testFunction · 0.85
secp256k1_testrand_bitsFunction · 0.85
secp256k1_ge_set_xo_varFunction · 0.70
secp256k1_fe_normalizeFunction · 0.70

Tested by

no test coverage detected