Lines Matching defs:g_r
265 BIGNUM *h = NULL, *g_xh = NULL, *g_r = NULL, *gx_q = NULL;
281 h = g_xh = g_r = expected = NULL;
287 (g_r = BN_new()) == NULL ||
322 /* g_r = g^r */
323 if (BN_mod_exp(g_r, grp_g, r, grp_p, bn_ctx) == -1) {
327 SCHNORR_DEBUG_BN((g_r, "%s: g_r = ", __func__));
330 if (BN_mod_mul(expected, g_r, g_xh, grp_p, bn_ctx) == -1) {
331 error("%s: BN_mod_mul (expected = g_r mod p)", __func__);
346 if (g_r != NULL)
347 BN_clear_free(g_r);