Searched refs:grp_p (Results 1 – 2 of 2) sorted by relevance
/external/openssh/ |
D | schnorr.c | 125 schnorr_sign(const BIGNUM *grp_p, const BIGNUM *grp_q, const BIGNUM *grp_g, in schnorr_sign() argument 141 if (BN_cmp(g_x, grp_p) >= 0) { in schnorr_sign() 162 if ((v = bn_rand_range_gt_one(grp_p)) == NULL) { in schnorr_sign() 169 if (BN_mod_exp(g_v, grp_g, v, grp_p, bn_ctx) == -1) { in schnorr_sign() 176 if ((h = schnorr_hash(grp_p, grp_q, grp_g, evp_md, g_v, g_x, 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 272 if (BN_cmp(g_x, grp_p) >= 0) { in schnorr_verify() 294 if (BN_mod_exp(gx_q, g_x, grp_q, grp_p, bn_ctx) == -1) { in schnorr_verify() [all …]
|
D | schnorr.h | 42 schnorr_sign(const BIGNUM *grp_p, const BIGNUM *grp_q, const BIGNUM *grp_g, 46 schnorr_sign_buf(const BIGNUM *grp_p, const BIGNUM *grp_q, const BIGNUM *grp_g, 50 schnorr_verify(const BIGNUM *grp_p, const BIGNUM *grp_q, const BIGNUM *grp_g, 54 schnorr_verify_buf(const BIGNUM *grp_p, const BIGNUM *grp_q,
|