Home
last modified time | relevance | path

Searched refs:BN_mod_inverse (Results 1 – 21 of 21) sorted by relevance

/freebsd-14-stable/crypto/openssl/doc/man3/
HDBN_mod_inverse.pod5 BN_mod_inverse - compute inverse modulo n
11 BIGNUM *BN_mod_inverse(BIGNUM *r, BIGNUM *a, const BIGNUM *n,
16 BN_mod_inverse() computes the inverse of B<a> modulo B<n>
29 BN_mod_inverse() returns the B<BIGNUM> containing the inverse, and
/freebsd-14-stable/crypto/openssl/crypto/rsa/
HDrsa_gen.c221 if (BN_mod_inverse(r1, r2, rsa->e, ctx) != NULL) { in rsa_multiprime_keygen()
348 if (!BN_mod_inverse(rsa->d, rsa->e, pr0, ctx)) { in rsa_multiprime_keygen()
393 if (!BN_mod_inverse(rsa->iqmp, rsa->q, p, ctx)) { in rsa_multiprime_keygen()
402 if (!BN_mod_inverse(pinfo->t, pinfo->pp, p, ctx)) { in rsa_multiprime_keygen()
HDrsa_x931g.c117 rsa->d = BN_mod_inverse(NULL, rsa->e, r0, ctx2); /* d */ in RSA_X931_derive_ex()
136 rsa->iqmp = BN_mod_inverse(NULL, rsa->q, rsa->p, ctx2); in RSA_X931_derive_ex()
HDrsa_chk.c190 if (!BN_mod_inverse(i, key->q, key->p, ctx)) { in rsa_validate_keypair_multiprime()
216 if (!BN_mod_inverse(i, pinfo->pp, pinfo->r, ctx)) { in rsa_validate_keypair_multiprime()
HDrsa_sp800_56b_gen.c269 if (BN_mod_inverse(rsa->d, e, lcm, ctx) == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq()
308 if (BN_mod_inverse(rsa->iqmp, rsa->q, rsa->p, ctx) == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq()
HDrsa_crpt.c110 ret = BN_mod_inverse(NULL, d, r0, ctx); in rsa_get_public_exp()
/freebsd-14-stable/crypto/openssl/crypto/bn/
HDbn_x931p.c93 if (!BN_mod_inverse(p, p2, p1, ctx)) in BN_X931_derive_prime_ex()
99 if (!BN_mod_inverse(t, p1, p2, ctx)) in BN_X931_derive_prime_ex()
HDbn_rsa_fips186_4.c294 && BN_mod_inverse(R, r2, r1x2, ctx) in ossl_bn_rsa_fips186_4_derive_prime()
296 && BN_mod_inverse(tmp, r1x2, r2, ctx) in ossl_bn_rsa_fips186_4_derive_prime()
HDbn_mont.c316 else if ((BN_mod_inverse(Ri, R, &tmod, ctx)) == NULL) in BN_MONT_CTX_set()
351 else if ((BN_mod_inverse(Ri, R, &tmod, ctx)) == NULL) in BN_MONT_CTX_set()
379 if ((BN_mod_inverse(Ri, R, &mont->N, ctx)) == NULL) in BN_MONT_CTX_set()
HDbn_gcd.c515 BIGNUM *BN_mod_inverse(BIGNUM *in, in BN_mod_inverse() function
/freebsd-14-stable/crypto/openssl/crypto/dsa/
HDdsa_ossl.c168 if (BN_mod_inverse(blind, blind, dsa->params.q, ctx) == NULL) in ossl_dsa_do_sign_int()
384 if ((BN_mod_inverse(u2, s, dsa->params.q, ctx)) == NULL) in dsa_do_verify()
/freebsd-14-stable/contrib/ntp/util/
HDntp-keygen.c1386 BN_mod_inverse(v, u, n, ctx); /* u^-1 mod n */ in gen_gqkey()
1783 BN_mod_inverse(b1, b, q, ctx); in gen_mvkey()
/freebsd-14-stable/crypto/openssl/include/openssl/
HDbn.h347 BIGNUM *BN_mod_inverse(BIGNUM *ret,
/freebsd-14-stable/crypto/openssl/test/
HDbntest.c2952 if (!TEST_ptr_eq(BN_mod_inverse(r, a, b, ctx), r)) in test_mod_inverse()
2960 if (!TEST_ptr_null(BN_mod_inverse(b, a, b, ctx))) in test_mod_inverse()
/freebsd-14-stable/crypto/openssl/doc/
HDbuild.info730 DEPEND[html/man3/BN_mod_inverse.html]=man3/BN_mod_inverse.pod
731 GENERATE[html/man3/BN_mod_inverse.html]=man3/BN_mod_inverse.pod
732 DEPEND[man/man3/BN_mod_inverse.3]=man3/BN_mod_inverse.pod
733 GENERATE[man/man3/BN_mod_inverse.3]=man3/BN_mod_inverse.pod
2968 html/man3/BN_mod_inverse.html \
3576 man/man3/BN_mod_inverse.3 \
/freebsd-14-stable/crypto/openssl/crypto/ec/
HDecp_smpl.c1407 if (!BN_mod_inverse(r, r, group->field, ctx)) { in ossl_ec_GFp_simple_field_inv()
/freebsd-14-stable/secure/lib/libcrypto/
HDVersion.map531 BN_mod_inverse;
/freebsd-14-stable/contrib/wpa/src/crypto/
HDcrypto_openssl.c2058 res = BN_mod_inverse((BIGNUM *) c, (const BIGNUM *) a, in crypto_bignum_inverse()
/freebsd-14-stable/secure/lib/libcrypto/man/man3/
HDMakefile66 MAN+= BN_mod_inverse.3
/freebsd-14-stable/crypto/openssl/
HDCHANGES.md3108 mitigations are applied to the fallback BN_mod_inverse().
3109 When using this function rather than BN_mod_inverse() directly, new
10835 BN_mod_inverse_no_branch() of BN_div() and BN_mod_inverse(),
10838 and BN_mod_inverse() if the flag BN_FLG_CONSTTIME is set for one
13699 * Implement binary inversion algorithm for BN_mod_inverse in addition
14458 * Make BN_mod_inverse faster by explicitly handling small quotients
/freebsd-14-stable/crypto/openssl/util/
HDlibcrypto.num3737 BN_mod_inverse 3822 3_0_0 EXIST::FUNCTION: