• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/OpenSSH-189/openssh/

Lines Matching defs:g_x

67     const EVP_MD *evp_md, const BIGNUM *g_v, const BIGNUM *g_x,
88 buffer_put_bignum2(&b, g_x);
128 const EVP_MD *evp_md, const BIGNUM *x, const BIGNUM *g_x,
136 SCHNORR_DEBUG_BN((g_x, "%s: g_x = ", __func__));
139 if (BN_cmp(g_x, BN_value_one()) <= 0) {
140 error("%s: g_x < 1", __func__);
143 if (BN_cmp(g_x, grp_p) >= 0) {
144 error("%s: g_x > g", __func__);
178 if ((h = schnorr_hash(grp_p, grp_q, grp_g, evp_md, g_v, g_x,
222 const BIGNUM *x, const BIGNUM *g_x, const u_char *id, u_int idlen,
229 x, g_x, id, idlen, &r, &e) != 0)
252 * public exponent g_x (g^x) under group defined by 'grp_p', 'grp_q' and
259 const EVP_MD *evp_md, const BIGNUM *g_x, const u_char *id, u_int idlen,
267 SCHNORR_DEBUG_BN((g_x, "%s: g_x = ", __func__));
270 if (BN_cmp(g_x, BN_value_one()) <= 0) {
271 error("%s: g_x <= 1", __func__);
274 if (BN_cmp(g_x, grp_p) >= 0) {
275 error("%s: g_x >= p", __func__);
296 if (BN_mod_exp(gx_q, g_x, grp_q, grp_p, bn_ctx) == -1) {
297 error("%s: BN_mod_exp (g_x^q mod p)", __func__);
307 if ((h = schnorr_hash(grp_p, grp_q, grp_g, evp_md, e, g_x,
314 if (BN_mod_exp(g_xh, g_x, h, grp_p, bn_ctx) == -1) {
315 error("%s: BN_mod_exp (g_x^h mod p)", __func__);
322 error("%s: BN_mod_exp (g_x^h mod p)", __func__);
353 * g_x (g^x) under group defined by 'grp_p', 'grp_q' and 'grp_g' using a
361 const BIGNUM *g_x, const u_char *id, u_int idlen,
391 g_x, id, idlen, r, e);
586 BIGNUM *g_x;
593 if ((g_x = BN_new()) == NULL)
596 if (BN_mod_exp(g_x, grp_g, x, grp_p, bn_ctx) == -1)
597 fatal("%s: g_x", __func__);
598 if (schnorr_sign_buf(grp_p, grp_q, grp_g, x, g_x, "junk", 4,
601 if (schnorr_verify_buf(grp_p, grp_q, grp_g, g_x, "junk", 4,
604 if (schnorr_verify_buf(grp_p, grp_q, grp_g, g_x, "JUNK", 4,
608 if (schnorr_verify_buf(grp_p, grp_q, grp_g, g_x, "junk", 4,
612 BN_free(g_x);