Lines Matching defs:ret
155 int j, ret;
160 for (j = 0, past_i = 0, ret = 0; j < a->dmax; j++) {
163 ret += BN_BITS2 & (~mask & ~past_i);
164 ret += BN_num_bits_word(a->d[j]) & mask;
170 * if BN_is_zero(a) => i is -1 and ret contains garbage, so we mask the
175 return ret & mask;
245 BIGNUM *ret;
247 if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) {
251 ret->flags = BN_FLG_MALLOCED;
252 bn_check_top(ret);
253 return ret;
258 BIGNUM *ret = BN_new();
259 if (ret != NULL)
260 ret->flags |= BN_FLG_SECURE;
261 return ret;
433 BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret)
440 if (ret == NULL)
441 ret = bn = BN_new();
442 if (ret == NULL)
444 bn_check_top(ret);
450 ret->top = 0;
451 return ret;
455 if (bn_wexpand(ret, (int)i) == NULL) {
459 ret->top = i;
460 ret->neg = 0;
465 ret->d[--i] = l;
474 bn_correct_top(ret);
475 return ret;
544 BIGNUM *BN_lebin2bn(const unsigned char *s, int len, BIGNUM *ret)
551 if (ret == NULL)
552 ret = bn = BN_new();
553 if (ret == NULL)
555 bn_check_top(ret);
562 ret->top = 0;
563 return ret;
567 if (bn_wexpand(ret, (int)i) == NULL) {
571 ret->top = i;
572 ret->neg = 0;
578 ret->d[--i] = l;
587 bn_correct_top(ret);
588 return ret;
598 BIGNUM *BN_native2bn(const unsigned char *s, int len, BIGNUM *ret)
603 return BN_lebin2bn(s, len, ret);
604 return BN_bin2bn(s, len, ret);
967 BN_GENCB *ret;
969 if ((ret = OPENSSL_malloc(sizeof(*ret))) == NULL) {
974 return ret;