Lines Matching refs:iffval
2183 if (peer->iffval != NULL)
2184 BN_free(peer->iffval);
2185 peer->iffval = BN_new();
2188 BN_rand(peer->iffval, len * 8, -1, 1); /* r mod q*/
2190 BN_mod(peer->iffval, peer->iffval, q, bctx);
2202 BN_bn2bin(peer->iffval, vp->ptr);
2384 if (peer->iffval == NULL) {
2408 BN_mod_exp(bn, pub_key, peer->iffval, p, bctx);
2418 BN_free(peer->iffval);
2419 peer->iffval = NULL;
2521 if (peer->iffval != NULL)
2522 BN_free(peer->iffval);
2523 peer->iffval = BN_new();
2526 BN_rand(peer->iffval, len * 8, -1, 1); /* r mod n */
2528 BN_mod(peer->iffval, peer->iffval, n, bctx);
2540 BN_bn2bin(peer->iffval, vp->ptr);
2707 if (peer->iffval == NULL) {
2734 BN_mod_exp(v, peer->grpkey, peer->iffval, n, bctx);
2745 BN_free(peer->iffval);
2746 peer->iffval = NULL;
2864 if (peer->iffval != NULL)
2865 BN_free(peer->iffval);
2866 peer->iffval = BN_new();
2868 BN_rand(peer->iffval, len * 8, -1, 1); /* r mod p */
2870 BN_mod(peer->iffval, peer->iffval, p, bctx);
2882 BN_bn2bin(peer->iffval, vp->ptr);
3057 if (peer->iffval == NULL) {
3086 temp = BN_cmp(u, peer->iffval);
3088 BN_free(peer->iffval);
3089 peer->iffval = NULL;