Lines Matching defs:ret
156 BIGNUM *f,*ret;
186 ret = BN_CTX_get(ctx);
189 if (!f || !ret || !buf)
230 if (!rsa->meth->bn_mod_exp(ret,f,rsa->e,rsa->n,ctx,
235 j=BN_num_bytes(ret);
236 i=BN_bn2bin(ret,&(to[num-j]));
257 BN_BLINDING *ret;
273 ret = rsa->blinding;
274 if (ret == NULL)
278 if (!CRYPTO_THREADID_cmp(&cur, BN_BLINDING_thread_id(ret)))
306 ret = rsa->mt_blinding;
314 return ret;
324 int ret;
326 ret = BN_BLINDING_convert_ex(f, r, b, ctx);
328 return ret;
339 int ret;
341 ret = BN_BLINDING_invert_ex(f, r, b, ctx);
343 return ret;
351 BIGNUM *f, *ret, *br, *res;
362 ret = BN_CTX_get(ctx);
365 if(!f || !ret || !buf)
419 if (!rsa->meth->rsa_mod_exp(ret, f, rsa, ctx)) goto err;
439 if (!rsa->meth->bn_mod_exp(ret,f,d,rsa->n,ctx,
444 if (!rsa_blinding_invert(blinding, local_blinding, ret, br, ctx))
449 BN_sub(f, rsa->n, ret);
450 if (BN_cmp(ret, f))
453 res = ret;
456 res = ret;
483 BIGNUM *f, *ret, *br;
495 ret = BN_CTX_get(ctx);
498 if(!f || !ret || !buf)
543 if (!rsa->meth->rsa_mod_exp(ret, f, rsa, ctx)) goto err;
561 if (!rsa->meth->bn_mod_exp(ret,f,d,rsa->n,ctx,
567 if (!rsa_blinding_invert(blinding, local_blinding, ret, br, ctx))
571 j=BN_bn2bin(ret,p); /* j is only used with no-padding mode */
614 BIGNUM *f,*ret;
645 ret = BN_CTX_get(ctx);
648 if(!f || !ret || !buf)
674 if (!rsa->meth->bn_mod_exp(ret,f,rsa->e,rsa->n,ctx,
677 if ((padding == RSA_X931_PADDING) && ((ret->d[0] & 0xf) != 12))
678 if (!BN_sub(ret, rsa->n, ret)) goto err;
681 i=BN_bn2bin(ret,p);
720 int ret=0;
870 ret=1;
873 return(ret);