Home
last modified time | relevance | path

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

12

/netbsd-src/crypto/external/bsd/openssl.old/dist/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>
25 BN_mod_inverse() returns the B<BIGNUM> containing the inverse, and
/netbsd-src/crypto/external/bsd/openssl/dist/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
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/rsa/
H A Drsa_gen.c193 if (BN_mod_inverse(r1, r2, rsa->e, ctx) != NULL) { in rsa_builtin_keygen()
320 if (!BN_mod_inverse(rsa->d, rsa->e, pr0, ctx)) { in rsa_builtin_keygen()
365 if (!BN_mod_inverse(rsa->iqmp, rsa->q, p, ctx)) { in rsa_builtin_keygen()
374 if (!BN_mod_inverse(pinfo->t, pinfo->pp, p, ctx)) { in rsa_builtin_keygen()
H A Drsa_x931g.c111 rsa->d = BN_mod_inverse(NULL, rsa->e, r0, ctx2); /* d */ in RSA_X931_derive_ex()
130 rsa->iqmp = BN_mod_inverse(NULL, rsa->q, rsa->p, ctx2); in RSA_X931_derive_ex()
H A Drsa_chk.c184 if (!BN_mod_inverse(i, key->q, key->p, ctx)) { in RSA_check_key_ex()
210 if (!BN_mod_inverse(i, pinfo->pp, pinfo->r, ctx)) { in RSA_check_key_ex()
H A Drsa_crpt.c104 ret = BN_mod_inverse(NULL, d, r0, ctx); in rsa_get_public_exp()
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/rsa/
H A Drsa_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()
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.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()
H A Drsa_crpt.c110 ret = BN_mod_inverse(NULL, d, r0, ctx); in rsa_get_public_exp()
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/bn/
H A Dbn_x931p.c91 if (!BN_mod_inverse(p, p2, p1, ctx)) in BN_X931_derive_prime_ex()
97 if (!BN_mod_inverse(t, p1, p2, ctx)) in BN_X931_derive_prime_ex()
H A Dbn_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()
H A Dbn_gcd.c515 BIGNUM *BN_mod_inverse(BIGNUM *in, in BN_mod_inverse() function
/netbsd-src/crypto/external/bsd/openssl/dist/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.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()
H A Dbn_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()
/netbsd-src/crypto/external/bsd/netpgp/dist/src/libbn/
H A Dbn.h125 BIGNUM *BN_mod_inverse(BIGNUM */*ret*/, BIGNUM */*a*/, const BIGNUM */*n*/, BN_CTX */*ctx*/);
/netbsd-src/sbin/nvmectl/
H A Dbn.h126 BIGNUM *BN_mod_inverse(BIGNUM */*ret*/, BIGNUM */*a*/, const BIGNUM */*n*/, BN_CTX */*ctx*/);
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/dsa/
H A Ddsa_ossl.c151 if (BN_mod_inverse(blind, blind, dsa->q, ctx) == NULL) in dsa_do_sign()
346 if ((BN_mod_inverse(u2, s, dsa->q, ctx)) == NULL) in dsa_do_verify()
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/dsa/
H A Ddsa_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()
/netbsd-src/crypto/external/bsd/netpgp/dist/src/netpgpverify/
H A Dbn.h90 #define BN_mod_inverse PGPV_BN_mod_inverse macro
/netbsd-src/crypto/external/bsd/openssl.old/lib/libcrypto/
H A Dman.inc59 BN_mod_inverse.3 \
/netbsd-src/crypto/external/cpl/trousers/dist/src/include/daa/
H A Dbi_openssl.h327 BN_mod_inverse( result, i, m, context); in bi_invert_mod()
/netbsd-src/crypto/external/bsd/netpgp/dist/src/lib/
H A Dopenssl_crypto.c945 sk->u = BN_mod_inverse(NULL, sk->p, sk->q, ctx); in rsa_generate_keypair()
1243 if (!BN_mod_inverse(bndiv, c1x, p, tmp)) { in pgp_elgamal_private_decrypt()

12