Lines Matching defs:ret
63 /* Returns 'ret' such that
64 * ret^2 == a (mod p),
72 BIGNUM *ret = in;
82 if (ret == NULL)
83 ret = BN_new();
84 if (ret == NULL)
86 if (!BN_set_word(ret, BN_is_bit_set(a, 0)))
88 BN_free(ret);
91 return ret;
100 if (ret == NULL)
101 ret = BN_new();
102 if (ret == NULL)
104 if (!BN_set_word(ret, BN_is_one(a)))
106 BN_free(ret);
109 return ret;
130 if (ret == NULL)
131 ret = BN_new();
132 if (ret == NULL) goto end;
152 if (!BN_mod_exp(ret, a, q, p, ctx)) goto end;
211 if (!BN_copy(ret, x)) goto end;
304 if (!BN_zero(ret)) goto end;
317 if (!BN_zero(ret)) goto end;
343 if (!BN_copy(ret, x)) goto end;
379 if (ret != NULL && ret != in)
381 BN_clear_free(ret);
383 ret = NULL;
386 return ret;