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()
117 if (bn_wexpand(r,j) == NULL) return(0); in BN_rshift1()
146 if (bn_wexpand(r,a->top+nw+1) == NULL) return(0); in BN_lshift()
192 if (bn_wexpand(r,i) == 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;
250 if (bn_wexpand(snum, sdiv->top + 2) == NULL) goto err; in BN_div()
256 if (bn_wexpand(snum, snum->top + 1) == NULL) goto err; in BN_div()
284 if (!bn_wexpand(res,(loop+1))) goto err; in BN_div()
289 if (!bn_wexpand(tmp,(div_n+1))) goto err; in BN_div()
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_gf2m.c240 if(bn_wexpand(r, at->top) == NULL) in BN_GF2m_add()
287 if (!bn_wexpand(r, a->top)) return 0; in BN_GF2m_mod_arr()
404 if (!bn_wexpand(s, zlen)) goto err; in BN_GF2m_mod_mul_arr()
471 if (!bn_wexpand(s, 2 * a->top)) goto err; in BN_GF2m_mod_sqr_arr()
576 bn_wexpand(u,top); udp = u->d; in BN_GF2m_mod_inv()
579 bn_wexpand(b,top); bdp = b->d; in BN_GF2m_mod_inv()
583 bn_wexpand(c,top); cdp = c->d; in BN_GF2m_mod_inv()
Dbn_mont.c139 if (bn_wexpand(r,num) == NULL) return(0); in BN_mod_mul_montgomery()
188 if (bn_wexpand(r,max) == NULL) return(0); in BN_from_montgomery_word()
232 if (bn_wexpand(ret,nl) == NULL) return(0); in BN_from_montgomery_word()
Dbn_lib.c487 if (bn_wexpand(a,b->top) == NULL) return(NULL); in BN_copy()
598 if (bn_wexpand(ret, (int)i) == NULL) in BN_bin2bn()
711 if (bn_wexpand(a,i+1) == NULL) return(0); in BN_set_bit()
Dbn_nist.c391 if (!bn_wexpand(r, BN_NIST_192_TOP)) in BN_nist_mod_192()
510 if (!bn_wexpand(r, BN_NIST_224_TOP)) in BN_nist_mod_224()
666 if (!bn_wexpand(r, BN_NIST_256_TOP)) in BN_nist_mod_256()
870 if (!bn_wexpand(r, BN_NIST_384_TOP)) in BN_nist_mod_384()
1072 if (!bn_wexpand(r,BN_NIST_521_TOP)) in BN_nist_mod_521()
Dbn_exp.c555 if (bn_wexpand(b, top) == NULL) in MOD_EXP_CTIME_COPY_FROM_PREBUF()
Dbn.h699 #define bn_wexpand(a,words) (((words) <= (a)->dmax)?(a):bn_expand2((a),(words))) macro
/external/openssl/crypto/ec/
Dec2_smpl.c188 if (bn_wexpand(&dest->a, (int)(dest->poly[0] + BN_BITS2 - 1) / BN_BITS2) == NULL) return 0; in ec_GF2m_simple_group_copy()
189 if (bn_wexpand(&dest->b, (int)(dest->poly[0] + BN_BITS2 - 1) / BN_BITS2) == NULL) return 0; in ec_GF2m_simple_group_copy()
213 if(bn_wexpand(&group->a, (int)(group->poly[0] + BN_BITS2 - 1) / BN_BITS2) == NULL) goto err; in ec_GF2m_simple_group_set_curve()
218 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.h699 #define bn_wexpand(a,words) (((words) <= (a)->dmax)?(a):bn_expand2((a),(words))) macro