Home | History | Annotate | Download | only in openssh

Lines Matching refs:g_x

65     const EVP_MD *evp_md, const BIGNUM *g_v, const BIGNUM *g_x,
86 buffer_put_bignum2(&b, g_x);
126 const EVP_MD *evp_md, const BIGNUM *x, const BIGNUM *g_x,
134 SCHNORR_DEBUG_BN((g_x, "%s: g_x = ", __func__));
137 if (BN_cmp(g_x, BN_value_one()) <= 0) {
138 error("%s: g_x < 1", __func__);
141 if (BN_cmp(g_x, grp_p) >= 0) {
142 error("%s: g_x > g", __func__);
176 if ((h = schnorr_hash(grp_p, grp_q, grp_g, evp_md, g_v, g_x,
220 const BIGNUM *x, const BIGNUM *g_x, const u_char *id, u_int idlen,
227 x, g_x, id, idlen, &r, &e) != 0)
250 * public exponent g_x (g^x) under group defined by 'grp_p', 'grp_q' and
257 const EVP_MD *evp_md, const BIGNUM *g_x, const u_char *id, u_int idlen,
265 SCHNORR_DEBUG_BN((g_x, "%s: g_x = ", __func__));
268 if (BN_cmp(g_x, BN_value_one()) <= 0) {
269 error("%s: g_x <= 1", __func__);
272 if (BN_cmp(g_x, grp_p) >= 0) {
273 error("%s: g_x >= p", __func__);
294 if (BN_mod_exp(gx_q, g_x, grp_q, grp_p, bn_ctx) == -1) {
295 error("%s: BN_mod_exp (g_x^q mod p)", __func__);
305 if ((h = schnorr_hash(grp_p, grp_q, grp_g, evp_md, e, g_x,
312 if (BN_mod_exp(g_xh, g_x, h, grp_p, bn_ctx) == -1) {
313 error("%s: BN_mod_exp (g_x^h mod p)", __func__);
320 error("%s: BN_mod_exp (g_x^h mod p)", __func__);
351 * g_x (g^x) under group defined by 'grp_p', 'grp_q' and 'grp_g' using a
359 const BIGNUM *g_x, const u_char *id, u_int idlen,
389 g_x, id, idlen, r, e);
584 BIGNUM *g_x;
591 if ((g_x = BN_new()) == NULL)
594 if (BN_mod_exp(g_x, grp_g, x, grp_p, bn_ctx) == -1)
595 fatal("%s: g_x", __func__);
596 if (schnorr_sign_buf(grp_p, grp_q, grp_g, x, g_x, "junk", 4,
599 if (schnorr_verify_buf(grp_p, grp_q, grp_g, g_x, "junk", 4,
602 if (schnorr_verify_buf(grp_p, grp_q, grp_g, g_x, "JUNK", 4,
606 if (schnorr_verify_buf(grp_p, grp_q, grp_g, g_x, "junk", 4,
610 BN_free(g_x);