Home
last modified time | relevance | path

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

/freebsd/crypto/openssl/doc/man3/
H A DBN_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/crypto/openssl/crypto/bn/
H A Dbn_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()
H A Dbn_rsa_fips186_4.c330 && (BN_mod_inverse(tmp, r1x2, r2, ctx) != NULL) in ossl_bn_rsa_fips186_4_derive_prime()
332 && (BN_mod_inverse(R, r2, r1x2, ctx) != NULL) in ossl_bn_rsa_fips186_4_derive_prime()
H A Dbn_mont.c314 else if ((BN_mod_inverse(Ri, R, &tmod, ctx)) == NULL) in BN_MONT_CTX_set()
349 else if ((BN_mod_inverse(Ri, R, &tmod, ctx)) == NULL) in BN_MONT_CTX_set()
377 if ((BN_mod_inverse(Ri, R, &mont->N, ctx)) == NULL) in BN_MONT_CTX_set()
H A Dbn_gcd.c516 BIGNUM *BN_mod_inverse(BIGNUM *in, in BN_mod_inverse() function
561 ret = (BN_mod_inverse(tmp, a, b, ctx) != NULL); in BN_are_coprime()
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_gen.c138 if (BN_mod_inverse(r1, r2, rsa->e, ctx) == NULL) in DEFINE_STACK_OF()
227 if (BN_mod_inverse(iqmp, sk_BIGNUM_value(factors, 1), in DEFINE_STACK_OF()
239 if (BN_mod_inverse(newcoeff, newpp, sk_BIGNUM_value(factors, i), in DEFINE_STACK_OF()
416 if (BN_mod_inverse(r1, r2, rsa->e, ctx) != NULL) { in rsa_multiprime_keygen()
556 if (BN_mod_inverse(rsa->d, rsa->e, r0, ctx) == NULL) { in rsa_multiprime_keygen()
H A Drsa_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()
H A Drsa_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()
H A Drsa_sp800_56b_gen.c277 if (BN_mod_inverse(rsa->d, e, lcm, ctx) == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq()
317 if (BN_mod_inverse(rsa->iqmp, rsa->q, rsa->p, ctx) == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq()
H A Drsa_crpt.c110 ret = BN_mod_inverse(NULL, d, r0, ctx); in rsa_get_public_exp()
/freebsd/crypto/openssl/crypto/dsa/
H A Ddsa_ossl.c174 if (BN_mod_inverse(blind, blind, dsa->params.q, ctx) == NULL) in ossl_dsa_do_sign_int()
405 if ((BN_mod_inverse(u2, s, dsa->params.q, ctx)) == NULL) in dsa_do_verify()
/freebsd/contrib/ntp/util/
H A Dntp-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/crypto/openssl/include/openssl/
H A Dbn.h354 BIGNUM *BN_mod_inverse(BIGNUM *ret,
/freebsd/crypto/openssl/test/
H A Dbntest.c3189 if (!TEST_ptr_eq(BN_mod_inverse(r, a, b, ctx), r)) in test_mod_inverse()
3197 if (!TEST_ptr_null(BN_mod_inverse(b, a, b, ctx))) in test_mod_inverse()
/freebsd/crypto/openssl/crypto/ec/
H A Decp_smpl.c1407 if (!BN_mod_inverse(r, r, group->field, ctx)) { in ossl_ec_GFp_simple_field_inv()
/freebsd/crypto/openssl/doc/
H A Dbuild.info750 DEPEND[html/man3/BN_mod_inverse.html]=man3/BN_mod_inverse.pod
751 GENERATE[html/man3/BN_mod_inverse.html]=man3/BN_mod_inverse.pod
752 DEPEND[man/man3/BN_mod_inverse.3]=man3/BN_mod_inverse.pod
753 GENERATE[man/man3/BN_mod_inverse.3]=man3/BN_mod_inverse.pod
3235 html/man3/BN_mod_inverse.html \
3907 man/man3/BN_mod_inverse.3 \
/freebsd/secure/lib/libcrypto/
H A DVersion.map531 BN_mod_inverse;
/freebsd/contrib/wpa/src/crypto/
H A Dcrypto_openssl.c2058 res = BN_mod_inverse((BIGNUM *) c, (const BIGNUM *) a, in crypto_bignum_inverse()
/freebsd/secure/lib/libcrypto/man/man3/
H A DMakefile69 MAN+= BN_mod_inverse.3
/freebsd/crypto/openssl/
H A DCHANGES.md4377 mitigations are applied to the fallback BN_mod_inverse().
4378 When using this function rather than BN_mod_inverse() directly, new
12109 BN_mod_inverse_no_branch() of BN_div() and BN_mod_inverse(),
12112 and BN_mod_inverse() if the flag BN_FLG_CONSTTIME is set for one
14973 * Implement binary inversion algorithm for BN_mod_inverse in addition
15732 * Make BN_mod_inverse faster by explicitly handling small quotients
/freebsd/crypto/openssl/util/
H A Dlibcrypto.num3737 BN_mod_inverse 3822 3_0_0 EXIST::FUNCTION: