Lines Matching refs:grp_q
125 schnorr_sign(const BIGNUM *grp_p, const BIGNUM *grp_q, const BIGNUM *grp_g, in schnorr_sign() argument
176 if ((h = schnorr_hash(grp_p, grp_q, grp_g, evp_md, g_v, g_x, in schnorr_sign()
183 if (BN_mod_mul(tmp, x, h, grp_q, bn_ctx) == -1) { in schnorr_sign()
187 if (BN_mod_sub(r, v, tmp, grp_q, bn_ctx) == -1) { in schnorr_sign()
219 schnorr_sign_buf(const BIGNUM *grp_p, const BIGNUM *grp_q, const BIGNUM *grp_g, in schnorr_sign_buf() argument
226 if (schnorr_sign(grp_p, grp_q, grp_g, EVP_sha256(), in schnorr_sign_buf()
256 schnorr_verify(const BIGNUM *grp_p, const BIGNUM *grp_q, const BIGNUM *grp_g, in schnorr_verify() argument
294 if (BN_mod_exp(gx_q, g_x, grp_q, grp_p, bn_ctx) == -1) { in schnorr_verify()
305 if ((h = schnorr_hash(grp_p, grp_q, grp_g, evp_md, e, g_x, in schnorr_verify()
357 schnorr_verify_buf(const BIGNUM *grp_p, const BIGNUM *grp_q, in schnorr_verify_buf() argument
388 ret = schnorr_verify(grp_p, grp_q, grp_g, EVP_sha256(), in schnorr_verify_buf()
581 schnorr_selftest_one(const BIGNUM *grp_p, const BIGNUM *grp_q, in schnorr_selftest_one() argument
596 if (schnorr_sign_buf(grp_p, grp_q, grp_g, x, g_x, "junk", 4, in schnorr_selftest_one()
599 if (schnorr_verify_buf(grp_p, grp_q, grp_g, g_x, "junk", 4, in schnorr_selftest_one()
602 if (schnorr_verify_buf(grp_p, grp_q, grp_g, g_x, "JUNK", 4, in schnorr_selftest_one()
606 if (schnorr_verify_buf(grp_p, grp_q, grp_g, g_x, "junk", 4, in schnorr_selftest_one()