Lines Matching defs:xr
1337 uint32_t xr[8], k[8], t3[8], t4[8];
1343 ret = scalar_gen_with_pub(kb, k, xr, t3); /* xr = x_coord(k * G) */
1348 /* 2. Convert xr to an integer */
1349 m256_done(xr, &p256_p);
1351 /* 3. Reduce xr mod n (extra: output it while at it) */
1352 ecdsa_m256_mod_n(xr); /* xr = int(xr) mod n */
1354 /* xr is public data so it's OK to use a branch */
1355 if (u256_diff0(xr) == 0)
1358 u256_to_bytes(sig, xr);
1360 m256_prep(xr, &p256_n);
1377 m256_mul(t4, xr, t4, &p256_n); /* t4 = r * dU */