Lines Matching defs:test
200 BIGNUM *W, *X, *tmp, *c, *test;
206 test = BN_CTX_get(ctx);
211 if (!BN_lshift(test, BN_value_one(), L - 1))
263 || !BN_add(X, X, test)
286 if (BN_cmp(p, test) >= 0) {
522 BIGNUM *tmp, *pm1, *e, *test;
579 test = BN_CTX_get(ctx);
679 if (!BN_lshift(test, BN_value_one(), L - 1))
722 /* If validating p & q only then skip the g validation test */
814 BIGNUM *r0, *test, *tmp, *g = NULL, *q = NULL, *p = NULL;
890 test = BN_CTX_get(ctx);
891 if (test == NULL)
894 if (!BN_lshift(test, BN_value_one(), L - 1))
974 /* If validating p & q only then skip the g validation test */
985 /* set test = p - 1 */
986 if (!BN_sub(test, p, BN_value_one()))
989 if (!BN_div(r0, NULL, test, q, ctx))
991 if (!generate_unverifiable_g(ctx, mont, g, tmp, p, r0, test, &hret))