Home
last modified time | relevance | path

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

/openssl/crypto/bn/
H A Dbn_shift.c24 if (bn_wexpand(r, a->top + 1) == NULL) in BN_lshift1()
28 if (bn_wexpand(r, a->top + 1) == NULL) in BN_lshift1()
60 if (bn_wexpand(r, i) == NULL) in BN_rshift1()
117 if (bn_wexpand(r, a->top + nw + 1) == NULL) in bn_lshift_fixed_top()
198 if (r != a && bn_wexpand(r, top) == NULL) in bn_rshift_fixed_top()
H A Dbn_sqr.c49 if (bn_wexpand(rr, max) == NULL) in bn_sqr_fixed_top()
78 if (bn_wexpand(tmp, k * 2) == NULL) in bn_sqr_fixed_top()
82 if (bn_wexpand(tmp, max) == NULL) in bn_sqr_fixed_top()
88 if (bn_wexpand(tmp, max) == NULL) in bn_sqr_fixed_top()
H A Dbn_mul.c547 if (bn_wexpand(rr, 8) == NULL) in bn_mul_fixed_top()
555 if (bn_wexpand(rr, 16) == NULL) in bn_mul_fixed_top()
583 if (bn_wexpand(t, k * 4) == NULL) in bn_mul_fixed_top()
585 if (bn_wexpand(rr, k * 4) == NULL) in bn_mul_fixed_top()
591 if (bn_wexpand(t, k * 2) == NULL) in bn_mul_fixed_top()
593 if (bn_wexpand(rr, k * 2) == NULL) in bn_mul_fixed_top()
602 if (bn_wexpand(rr, top) == NULL) in bn_mul_fixed_top()
H A Dbn_div.c62 if (bn_wexpand(dv, 1) == NULL)
308 if (bn_wexpand(snum, div_n + 1) == NULL) in bn_div_fixed_top()
327 if (!bn_wexpand(res, loop)) in bn_div_fixed_top()
336 if (!bn_wexpand(tmp, (div_n + 1))) in bn_div_fixed_top()
H A Dbn_add.c96 if (bn_wexpand(r, max + 1) == NULL) in BN_uadd()
143 if (bn_wexpand(r, max) == NULL) in BN_usub()
H A Dbn_word.c125 if (bn_wexpand(a, a->top + 1) == NULL) in BN_add_word()
193 if (bn_wexpand(a, a->top + 1) == NULL) in BN_mul_word()
H A Dbn_gf2m.c268 if (bn_wexpand(r, at->top) == NULL) in BN_GF2m_add()
311 if (!bn_wexpand(r, a->top)) in BN_GF2m_mod_arr()
429 if (!bn_wexpand(s, zlen)) in BN_GF2m_mod_mul_arr()
504 if (!bn_wexpand(s, 2 * a->top)) in BN_GF2m_mod_sqr_arr()
629 if (!bn_wexpand(u, top)) in BN_GF2m_mod_inv_vartime()
635 if (!bn_wexpand(b, top)) in BN_GF2m_mod_inv_vartime()
642 if (!bn_wexpand(c, top)) in BN_GF2m_mod_inv_vartime()
H A Dbn_gcd.c599 if (bn_wexpand(r, top) == NULL in BN_gcd()
600 || bn_wexpand(g, top) == NULL in BN_gcd()
601 || bn_wexpand(temp, top) == NULL) in BN_gcd()
H A Dbn_mont.c46 if (bn_wexpand(r, num) == NULL) in bn_mul_mont_fixed_top()
103 if (bn_wexpand(r, max) == NULL) in bn_from_montgomery_word()
133 if (bn_wexpand(ret, nl) == NULL) in bn_from_montgomery_word()
H A Dbn_mod.c56 if (bn_wexpand(r, mtop) == NULL) in bn_mod_add_fixed_top()
139 if (bn_wexpand(r, mtop) == NULL) in bn_mod_sub_fixed_top()
H A Dbn_intern.c190 if (bn_wexpand(a, num_words) == NULL) { in bn_set_words()
H A Dbn_nist.c362 if (!bn_wexpand(r, BN_NIST_192_TOP)) in BN_nist_mod_192()
507 if (!bn_wexpand(r, BN_NIST_224_TOP)) in BN_nist_mod_224()
688 if (!bn_wexpand(r, BN_NIST_256_TOP)) in BN_nist_mod_256()
934 if (!bn_wexpand(r, BN_NIST_384_TOP)) in BN_nist_mod_384()
1192 if (!bn_wexpand(r, BN_NIST_521_TOP)) in BN_nist_mod_521()
H A Dbn_lib.c346 if (bn_wexpand(a, bn_words) == NULL) in BN_copy()
498 if (!ossl_assert(bn_wexpand(ret, (int)n) != NULL)) { in bin2bn()
776 if (bn_wexpand(a, i + 1) == NULL) in BN_set_bit()
1097 BIGNUM *bn_wexpand(BIGNUM *a, int words) in bn_wexpand() function
H A Dbn_exp.c383 if (bn_wexpand(r, j) == NULL) in BN_mod_exp_mont()
530 if (bn_wexpand(b, top) == NULL) in MOD_EXP_CTIME_COPY_FROM_PREBUF()
666 if (NULL == bn_wexpand(rr, 16)) in BN_mod_exp_mont_consttime()
676 if (NULL == bn_wexpand(rr, 8)) in BN_mod_exp_mont_consttime()
1433 if (bn_wexpand(rr1, topn) == NULL) in BN_mod_exp_mont_consttime_x2()
1435 if (bn_wexpand(rr2, topn) == NULL) in BN_mod_exp_mont_consttime_x2()
H A DREADME.pod10 bn_expand, bn_wexpand, bn_expand2, bn_fix_top, bn_check_top,
53 BIGNUM *bn_wexpand(BIGNUM *a, int n);
205 number. bn_wexpand() ensures that B<b> has enough space for an
/openssl/crypto/ec/
H A Dec_mult.c215 if ((bn_wexpand(k, group_top + 2) == NULL) in ossl_ec_scalar_mul_ladder()
216 || (bn_wexpand(lambda, group_top + 2) == NULL)) { in ossl_ec_scalar_mul_ladder()
256 if ((bn_wexpand(s->X, group_top) == NULL) in ossl_ec_scalar_mul_ladder()
257 || (bn_wexpand(s->Y, group_top) == NULL) in ossl_ec_scalar_mul_ladder()
258 || (bn_wexpand(s->Z, group_top) == NULL) in ossl_ec_scalar_mul_ladder()
259 || (bn_wexpand(r->X, group_top) == NULL) in ossl_ec_scalar_mul_ladder()
260 || (bn_wexpand(r->Y, group_top) == NULL) in ossl_ec_scalar_mul_ladder()
261 || (bn_wexpand(r->Z, group_top) == NULL) in ossl_ec_scalar_mul_ladder()
262 || (bn_wexpand(p->X, group_top) == NULL) in ossl_ec_scalar_mul_ladder()
263 || (bn_wexpand(p->Y, group_top) == NULL) in ossl_ec_scalar_mul_ladder()
[all …]
H A Dec2_smpl.c89 if (bn_wexpand(dest->a, (int)(dest->poly[0] + BN_BITS2 - 1) / BN_BITS2) == in ossl_ec_GF2m_simple_group_copy()
92 if (bn_wexpand(dest->b, (int)(dest->poly[0] + BN_BITS2 - 1) / BN_BITS2) == in ossl_ec_GF2m_simple_group_copy()
119 if (bn_wexpand(group->a, (int)(group->poly[0] + BN_BITS2 - 1) / BN_BITS2) in ossl_ec_GF2m_simple_group_set_curve()
127 if (bn_wexpand(group->b, (int)(group->poly[0] + BN_BITS2 - 1) / BN_BITS2) in ossl_ec_GF2m_simple_group_set_curve()
H A Dec_backend.c473 if (bn_wexpand(priv_key, fixed_words) == NULL) in ossl_ec_key_fromdata()
H A Dec_key.c778 if (bn_wexpand(tmp_key, fixed_top) == NULL) { in EC_KEY_set_private_key()
H A Decp_nistz256.c1328 if (bn_wexpand(r, P256_LIMBS) == NULL) { in ecp_nistz256_inv_mod_ord()
/openssl/include/crypto/
H A Dbn.h17 BIGNUM *bn_wexpand(BIGNUM *a, int words);
/openssl/crypto/dsa/
H A Ddsa_ossl.c239 if (!bn_wexpand(k, q_words + 2) in dsa_sign_setup()
240 || !bn_wexpand(l, q_words + 2)) in dsa_sign_setup()
/openssl/
H A DCHANGES.md9619 * Always check bn_wexpand() return values for failure. ([CVE-2009-3245])
11475 * Remove a few calls to bn_wexpand() in BN_sqr() (the one in there
13970 * Remove a few calls to bn_wexpand() in BN_sqr() (the one in there

Completed in 139 milliseconds