Lines Matching refs:gx
52 p->gx = BN_new(); in JPAKE_STEP_PART_init()
59 BN_free(p->gx); in JPAKE_STEP_PART_release()
176 hashbn(&sha, p->gx); in zkp_hash()
228 BN_mod_exp(t2, p->gx, h, ctx->p.p, ctx->ctx); in verify_zkp()
250 BN_mod_exp(p->gx, g, x, ctx->p.p, ctx->ctx); in generate_step_part()
286 static int is_legal(const BIGNUM *gx, const JPAKE_CTX *ctx) in is_legal() argument
291 if(BN_is_negative(gx) || BN_is_zero(gx) || BN_cmp(gx, ctx->p.p) >= 0) in is_legal()
295 BN_mod_exp(t, gx, ctx->p.q, ctx->p.p, ctx->ctx); in is_legal()
304 if(!is_legal(received->p1.gx, ctx)) in JPAKE_STEP1_process()
310 if(!is_legal(received->p2.gx, ctx)) in JPAKE_STEP1_process()
331 if(BN_is_one(received->p2.gx)) in JPAKE_STEP1_process()
338 BN_copy(ctx->p.gxc, received->p1.gx); in JPAKE_STEP1_process()
339 BN_copy(ctx->p.gxd, received->p2.gx); in JPAKE_STEP1_process()
381 static int compute_key(JPAKE_CTX *ctx, const BIGNUM *gx) in compute_key() argument
402 BN_mod_mul(t1, gx, t3, ctx->p.p, ctx->ctx); in compute_key()
435 compute_key(ctx, received->gx); in JPAKE_STEP2_process()