Home
last modified time | relevance | path

Searched refs:BN_div (Results 1 – 22 of 22) sorted by relevance

/freebsd/crypto/openssl/doc/man3/
H A DBN_add.pod5 BN_add, BN_sub, BN_mul, BN_sqr, BN_div, BN_mod, BN_nnmod, BN_mod_add,
21 int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *a, const BIGNUM *d,
64 BN_div() divides I<a> by I<d> and places the result in I<dv> and the
71 BN_mod() corresponds to BN_div() with I<dv> set to B<NULL>.
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_chk.c127 if (!BN_div(m, NULL, l, m, ctx)) { /* remainder is 0 */ in rsa_validate_keypair_multiprime()
145 if (!BN_div(m, NULL, l, m, ctx)) { /* remainder is 0 */ in rsa_validate_keypair_multiprime()
H A Drsa_x931g.c110 if (!BN_div(r0, NULL, r0, r3, ctx)) in RSA_X931_derive_ex()
H A Drsa_sp800_56b_check.c273 && BN_div(lcm, NULL, p1q1, gcd, ctx); /* LCM((p-1, q-1)) */ in ossl_rsa_get_lcm()
/freebsd/crypto/openssl/crypto/bn/
H A Dbn_mont.c333 if (!BN_div(Ri, NULL, Ri, &tmod, ctx)) in BN_MONT_CTX_set()
363 if (!BN_div(Ri, NULL, Ri, &tmod, ctx)) in BN_MONT_CTX_set()
388 if (!BN_div(&(mont->Ni), NULL, Ri, &mont->N, ctx)) in BN_MONT_CTX_set()
H A Dbn_div.c17 int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,
209 int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor, in BN_div() function
H A Dbn_gcd.c101 if (!BN_div(D, M, &local_A, B, ctx)) in bn_mod_inverse_no_branch()
407 if (!BN_div(D, M, A, B, ctx)) in int_bn_mod_inverse()
H A Dbn_recp.c186 if (!BN_div(r, NULL, t, m, ctx)) in BN_reciprocal()
/freebsd/crypto/openssl/fuzz/
H A Dbndiv.c83 OPENSSL_assert(BN_div(b3, b4, b1, b2, ctx)); in FuzzerTestOneInput()
/freebsd/crypto/openssl/test/
H A Dbntest.c337 if (TEST_true(BN_div(a, b, a, b, ctx)) in test_signed_mod_replace_ab()
360 if (TEST_true(BN_div(b, a, a, b, ctx)) in test_signed_mod_replace_ba()
392 && TEST_true(BN_div(d, e, a, b, ctx)) in test_mod()
1326 || !TEST_true(BN_div(ret, remainder, lshift1, two, ctx)) in file_lshift1()
1339 || !TEST_true(BN_div(ret, NULL /* rem */ , lshift1, two, ctx)) in file_lshift1()
1430 || !TEST_true(BN_div(ret, remainder, square, a, ctx)) in file_square()
1490 || !TEST_true(BN_div(ret, remainder, product, a, ctx)) in file_product()
1493 || !TEST_true(BN_div(ret, remainder, product, b, ctx)) in file_product()
1525 if (!TEST_true(BN_div(ret, ret2, a, b, ctx)) in file_quotient()
2222 if (!TEST_true(BN_div(a, b, numerator, denominator, ctx)) in test_negzero()
[all …]
/freebsd/lib/libmp/
H A Dmpasbn.c242 BN_ERRCHECK(msg, BN_div(q, r, nmp->bn, dmp->bn, c)); in _mdiv()
579 BN_ERRCHECK(msg, BN_div(q, r, nmp->bn, dmp->bn, c)); in _sdiv()
/freebsd/usr.bin/factor/
H A Dfactor.c282 BN_div(num, NULL, val, x, ctx); in pollard_pminus1()
/freebsd/crypto/openssl/include/openssl/
H A Dbn.h269 int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,
271 # define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx))
/freebsd/crypto/openssl/crypto/dh/
H A Ddh_check.c199 if (!BN_div(t1, t2, dh->params.p, dh->params.q, ctx)) in DH_check()
/freebsd/crypto/openssl/crypto/ffc/
H A Dffc_params_generate.c742 if (!(BN_sub(pm1, p, BN_value_one()) && BN_div(e, NULL, pm1, q, ctx))) in ossl_ffc_params_FIPS186_4_gen_verify()
989 if (!BN_div(r0, NULL, test, q, ctx)) in ossl_ffc_params_FIPS186_2_gen_verify()
/freebsd/contrib/ntp/util/
H A Dntp-keygen.c1798 BN_div(w, u, w, s1[j], ctx); in gen_mvkey()
1822 BN_div(s, u, s, s1[n], ctx); in gen_mvkey()
/freebsd/crypto/openssl/crypto/ec/
H A Dec_lib.c354 || !BN_div(group->cofactor, NULL, group->cofactor, group->order, ctx)) in ec_guess_cofactor()
/freebsd/secure/lib/libcrypto/
H A DVersion.map479 BN_div;
/freebsd/contrib/wpa/src/crypto/
H A Dcrypto_openssl.c2094 res = BN_div((BIGNUM *) c, NULL, (const BIGNUM *) a, in crypto_bignum_div()
/freebsd/secure/lib/libcrypto/man/man3/
H A DMakefile996 MLINKS+= BN_add.3 BN_div.3
/freebsd/crypto/openssl/
H A DCHANGES.md10486 - Enforce the 'num' check in BN_div() (bn_div.c) for non-BN_DEBUG
10804 BN_mod_inverse_no_branch() of BN_div() and BN_mod_inverse(),
10806 conditional branches. These are automatically called by BN_div()
13838 * In BN_div() keep a copy of the sign of 'num' before writing the
14393 * BN_div bugfix: If the result is 0, the sign (res->neg) must not be
16898 * Bug fix for BN_div() when the first words of num and divisor are
/freebsd/crypto/openssl/util/
H A Dlibcrypto.num383 BN_div 391 3_0_0 EXIST::FUNCTION: