Lines Matching refs:BIGNUM
17 BIGNUM *p;
18 BIGNUM *g;
19 BIGNUM *q;
20 BIGNUM *gxc; /* Alice's g^{x3} or Bob's g^{x1} */
21 BIGNUM *gxd; /* Alice's g^{x4} or Bob's g^{x2} */
27 BIGNUM *secret; /* The shared secret */
29 BIGNUM *xa; /* Alice's x1 or Bob's x3 */
30 BIGNUM *xb; /* Alice's x2 or Bob's x4 */
31 BIGNUM *key; /* The calculated (shared) key */
75 const char *peer_name, const BIGNUM *p, in JPAKE_CTX_init()
76 const BIGNUM *g, const BIGNUM *q, in JPAKE_CTX_init()
77 const BIGNUM *secret) in JPAKE_CTX_init()
116 const BIGNUM *p, const BIGNUM *g, const BIGNUM *q, in JPAKE_CTX_new()
117 const BIGNUM *secret) in JPAKE_CTX_new()
150 static void hashbn(SHA_CTX *sha, const BIGNUM *bn) in hashbn()
162 static void zkp_hash(BIGNUM *h, const BIGNUM *zkpg, const JPAKE_STEP_PART *p, in zkp_hash()
186 static void generate_zkp(JPAKE_STEP_PART *p, const BIGNUM *x, in generate_zkp()
187 const BIGNUM *zkpg, JPAKE_CTX *ctx) in generate_zkp()
189 BIGNUM *r = BN_new(); in generate_zkp()
190 BIGNUM *h = BN_new(); in generate_zkp()
191 BIGNUM *t = BN_new(); in generate_zkp()
214 static int verify_zkp(const JPAKE_STEP_PART *p, const BIGNUM *zkpg, in verify_zkp()
217 BIGNUM *h = BN_new(); in verify_zkp()
218 BIGNUM *t1 = BN_new(); in verify_zkp()
219 BIGNUM *t2 = BN_new(); in verify_zkp()
220 BIGNUM *t3 = BN_new(); in verify_zkp()
247 static void generate_step_part(JPAKE_STEP_PART *p, const BIGNUM *x, in generate_step_part()
248 const BIGNUM *g, JPAKE_CTX *ctx) in generate_step_part()
257 BIGNUM *qm1; in genrand()
286 static int is_legal(const BIGNUM *gx, const JPAKE_CTX *ctx) in is_legal()
288 BIGNUM *t; in is_legal()
347 BIGNUM *t1 = BN_new(); in JPAKE_STEP2_generate()
348 BIGNUM *t2 = BN_new(); in JPAKE_STEP2_generate()
381 static int compute_key(JPAKE_CTX *ctx, const BIGNUM *gx) in compute_key()
383 BIGNUM *t1 = BN_new(); in compute_key()
384 BIGNUM *t2 = BN_new(); in compute_key()
385 BIGNUM *t3 = BN_new(); in compute_key()
416 BIGNUM *t1 = BN_new(); in JPAKE_STEP2_process()
417 BIGNUM *t2 = BN_new(); in JPAKE_STEP2_process()
444 static void quickhashbn(unsigned char *md, const BIGNUM *bn) in quickhashbn()
507 const BIGNUM *JPAKE_get_shared_key(JPAKE_CTX *ctx) in JPAKE_get_shared_key()