Home
last modified time | relevance | path

Searched refs:bn_wexpand (Results 1 – 14 of 14) sorted by relevance

/external/openssl/crypto/bn/
Dbn_shift.c74 if (bn_wexpand(r,a->top+1) == NULL) return(0); in BN_lshift1()
79 if (bn_wexpand(r,a->top+1) == NULL) return(0); in BN_lshift1()
114 if (bn_wexpand(r,a->top) == NULL) return(0); in BN_rshift1()
143 if (bn_wexpand(r,a->top+nw+1) == NULL) return(0); in BN_lshift()
188 if (bn_wexpand(r,a->top-nw+1) == NULL) return(0); in BN_rshift()
Dbn_sqr.c89 if (bn_wexpand(rr,max) == NULL) goto err; in BN_sqr()
126 if (bn_wexpand(tmp,k*2) == NULL) goto err; in BN_sqr()
131 if (bn_wexpand(tmp,max) == NULL) goto err; in BN_sqr()
136 if (bn_wexpand(tmp,max) == NULL) goto err; in BN_sqr()
Dbn_mul.c992 if (bn_wexpand(rr,8) == NULL) goto err; in BN_mul()
1000 if (bn_wexpand(rr,16) == NULL) goto err; in BN_mul()
1030 if (bn_wexpand(t,k*4) == NULL) goto err; in BN_mul()
1031 if (bn_wexpand(rr,k*4) == NULL) goto err; in BN_mul()
1037 if (bn_wexpand(t,k*2) == NULL) goto err; in BN_mul()
1038 if (bn_wexpand(rr,k*2) == NULL) goto err; in BN_mul()
1049 if (bn_wexpand(tmp_bn,al) == NULL) goto err; in BN_mul()
1057 if (bn_wexpand(tmp_bn,bl) == NULL) goto err; in BN_mul()
1072 if (bn_wexpand(t,k*2) == NULL) goto err; in BN_mul()
1073 if (bn_wexpand(rr,k*2) == NULL) goto err; in BN_mul()
[all …]
Dbn_div.c105 if(bn_wexpand(dv,1) == NULL) goto end;
264 if (!bn_wexpand(res,(loop+1))) goto err; in BN_div()
269 if (!bn_wexpand(tmp,(div_n+1))) goto err; in BN_div()
469 if (bn_wexpand(snum, sdiv->top + 2) == NULL) goto err; in BN_div_no_branch()
475 if (bn_wexpand(snum, snum->top + 1) == NULL) goto err; in BN_div_no_branch()
502 if (!bn_wexpand(res,(loop+1))) goto err; in BN_div_no_branch()
507 if (!bn_wexpand(tmp,(div_n+1))) goto err; in BN_div_no_branch()
Dbn_add.c120 if (bn_wexpand(r,max+1) == NULL) in BN_uadd()
188 if (bn_wexpand(r,max) == NULL) return(0); in BN_usub()
299 if (bn_wexpand(r,max) == NULL) return(0); in BN_sub()
Dbn_word.c149 (bn_wexpand(a,a->top+1) == NULL)) in BN_add_word()
239 if (bn_wexpand(a,a->top+1) == NULL) return(0); in BN_mul_word()
Dbn_mont.c139 if (bn_wexpand(r,num) == NULL) return(0); in BN_mod_mul_montgomery()
192 if (bn_wexpand(r,max) == NULL) return(0); in BN_from_montgomery_word()
255 if (bn_wexpand(ret,ri) == NULL) return(0); in BN_from_montgomery_word()
303 if (bn_wexpand(ret,al) == NULL) return(0); in BN_from_montgomery_word()
Dbn_nist.c380 if (!bn_wexpand(r, BN_NIST_192_TOP)) in BN_nist_mod_192()
467 if (!bn_wexpand(r, BN_NIST_224_TOP)) in BN_nist_mod_224()
579 if (!bn_wexpand(r, BN_NIST_256_TOP)) in BN_nist_mod_256()
704 if (!bn_wexpand(r, BN_NIST_384_TOP)) in BN_nist_mod_384()
814 if (!bn_wexpand(r,BN_NIST_521_TOP)) in BN_nist_mod_521()
Dbn_lib.c506 if (bn_wexpand(a,b->top) == NULL) return(NULL); in BN_copy()
617 if (bn_wexpand(ret, (int)i) == NULL) in BN_bin2bn()
730 if (bn_wexpand(a,i+1) == NULL) return(0); in BN_set_bit()
Dbn_gf2m.c235 if(bn_wexpand(r, at->top) == NULL) in BN_GF2m_add()
282 if (!bn_wexpand(r, a->top)) return 0; in BN_GF2m_mod_arr()
403 if (!bn_wexpand(s, zlen)) goto err; in BN_GF2m_mod_mul_arr()
470 if (!bn_wexpand(s, 2 * a->top)) goto err; in BN_GF2m_mod_sqr_arr()
Dbn_exp.c529 if (bn_wexpand(b, top) == NULL) in MOD_EXP_CTIME_COPY_TO_PREBUF()
549 if (bn_wexpand(b, top) == NULL) in MOD_EXP_CTIME_COPY_FROM_PREBUF()
Dbn.h684 #define bn_wexpand(a,words) (((words) <= (a)->dmax)?(a):bn_expand2((a),(words))) macro
/external/openssl/crypto/ec/
Dec2_smpl.c179 if (bn_wexpand(&dest->a, (int)(dest->poly[0] + BN_BITS2 - 1) / BN_BITS2) == NULL) return 0; in ec_GF2m_simple_group_copy()
180 if (bn_wexpand(&dest->b, (int)(dest->poly[0] + BN_BITS2 - 1) / BN_BITS2) == NULL) return 0; in ec_GF2m_simple_group_copy()
204 if(bn_wexpand(&group->a, (int)(group->poly[0] + BN_BITS2 - 1) / BN_BITS2) == NULL) goto err; in ec_GF2m_simple_group_set_curve()
209 if(bn_wexpand(&group->b, (int)(group->poly[0] + BN_BITS2 - 1) / BN_BITS2) == NULL) goto err; in ec_GF2m_simple_group_set_curve()
/external/openssl/include/openssl/
Dbn.h684 #define bn_wexpand(a,words) (((words) <= (a)->dmax)?(a):bn_expand2((a),(words))) macro