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

Lines Matching refs:grp_p

117  * in public exponent g^x, under group defined by 'grp_p', 'grp_q' and 'grp_g'
127 schnorr_sign(const BIGNUM *grp_p, const BIGNUM *grp_q, const BIGNUM *grp_g,
143 if (BN_cmp(g_x, grp_p) >= 0) {
164 if ((v = bn_rand_range_gt_one(grp_p)) == NULL) {
171 if (BN_mod_exp(g_v, grp_g, v, grp_p, bn_ctx) == -1) {
178 if ((h = schnorr_hash(grp_p, grp_q, grp_g, evp_md, g_v, g_x,
213 * in public exponent g^x, under group defined by 'grp_p', 'grp_q' and 'grp_g'
221 schnorr_sign_buf(const BIGNUM *grp_p, const BIGNUM *grp_q, const BIGNUM *grp_g,
228 if (schnorr_sign(grp_p, grp_q, grp_g, EVP_sha256(),
252 * public exponent g_x (g^x) under group defined by 'grp_p', 'grp_q' and
258 schnorr_verify(const BIGNUM *grp_p, const BIGNUM *grp_q, const BIGNUM *grp_g,
274 if (BN_cmp(g_x, grp_p) >= 0) {
296 if (BN_mod_exp(gx_q, g_x, grp_q, grp_p, bn_ctx) == -1) {
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) {
321 if (BN_mod_exp(g_r, grp_g, r, grp_p, bn_ctx) == -1) {
328 if (BN_mod_mul(expected, g_r, g_xh, grp_p, bn_ctx) == -1) {
353 * g_x (g^x) under group defined by 'grp_p', 'grp_q' and 'grp_g' using a
359 schnorr_verify_buf(const BIGNUM *grp_p, const BIGNUM *grp_q,
390 ret = schnorr_verify(grp_p, grp_q, grp_g, EVP_sha256(),
548 modp_group_from_g_and_safe_p(const char *grp_g, const char *grp_p)
554 if (BN_hex2bn(&ret->p, grp_p) == 0 ||
583 schnorr_selftest_one(const BIGNUM *grp_p, const BIGNUM *grp_q,
596 if (BN_mod_exp(g_x, grp_g, x, grp_p, bn_ctx) == -1)
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,