Home
last modified time | relevance | path

Searched refs:BN_mod (Results 1 – 16 of 16) sorted by relevance

/external/vboot_reference/host/lib/
Dutil_misc.c100 BN_mod(RR, RRTemp, N, bn_ctx); in vb_keyb_from_rsa()
107 BN_mod(n, N, B, bn_ctx); /* n = N mod B */ in vb_keyb_from_rsa()
118 BN_mod(rr, RR, B, bn_ctx); /* rr = RR mod B */ in vb_keyb_from_rsa()
/external/vboot_reference/utility/
DdumpRSAPublicKey.c94 BN_mod(RR, RRTemp, N, bn_ctx); in output()
101 BN_mod(n, N, B, bn_ctx); /* n = N mod B */ in output()
113 BN_mod(rr, RR, B, bn_ctx); /* rr = RR mod B */ in output()
/external/openssh/
Drsa.c176 (BN_mod(rsa->dmq1, rsa->d, aux, ctx) == 0) || in rsa_generate_additional_parameters()
178 (BN_mod(rsa->dmp1, rsa->d, aux, ctx) == 0)) { in rsa_generate_additional_parameters()
Dauth-rsa.c86 if (BN_mod(challenge, challenge, key->rsa->n, ctx) == 0) in auth_rsa_generate_challenge()
/external/boringssl/src/crypto/rsa/
Drsa_impl.c661 if (!BN_mod(r1, c, rsa->q, ctx)) { in mod_exp()
675 if (!BN_mod(r1, c, rsa->p, ctx)) { in mod_exp()
705 if (!BN_mod(r0, pr1, rsa->p, ctx)) { in mod_exp()
739 if (!BN_mod(vrfy, vrfy, rsa->n, ctx)) { in mod_exp()
898 if (!BN_mod(rsa->dmp1, d, r1, ctx)) { in keygen()
903 if (!BN_mod(rsa->dmq1, d, r2, ctx)) { in keygen()
Drsa.c576 !BN_mod(&dmp1, key->d, &pm1, ctx) || in RSA_check_key()
578 !BN_mod(&dmq1, key->d, &qm1, ctx) || in RSA_check_key()
716 !BN_mod(rsa->dmp1, rsa->d, rem, ctx) || in RSA_recover_crt_params()
718 !BN_mod(rsa->dmq1, rsa->d, rem, ctx) || in RSA_recover_crt_params()
/external/boringssl/src/crypto/dsa/
Ddsa_impl.c155 if (!BN_mod(r, r, dsa->q, ctx)) { in sign_setup()
373 if (!BN_mod(&u1, &t1, dsa->q, ctx)) { in verify()
633 !BN_mod(c, X, r0, ctx) || in paramgen()
/external/boringssl/src/crypto/bn/
Dprime.c737 if (!BN_mod(t1, rnd, add, ctx)) { in probable_prime_dh()
795 if (!BN_mod(t1, q, qadd, ctx)) { in probable_prime_dh_safe()
Ddiv.c384 if (!(BN_mod(r, m, d, ctx))) { in BN_nnmod()
473 return BN_mod(r, r, m, ctx); in BN_mod_sqr()
Dexponentiation.c982 if (!BN_mod(&am, a, m, ctx) || in BN_mod_exp_mont_consttime()
1215 (BN_mod(t, r, m, ctx) && (swap_tmp = r, r = t, t = swap_tmp, 1)))) in BN_mod_exp_mont_word()
1414 if (!BN_mod(val1[0], a1, m, ctx)) { in BN_mod_exp2_mont()
1449 if (!BN_mod(val2[0], a2, m, ctx)) { in BN_mod_exp2_mont()
Dmontgomery.c285 if (!BN_mod(&(mont->RR), &(mont->RR), &(mont->N), ctx)) { in BN_MONT_CTX_set()
Dbn_test.cc955 if (!BN_mod(c.get(), a.get(), b.get(), ctx)) { in test_mod()
/external/boringssl/src/include/openssl/
Dbn.h485 #define BN_mod(rem, numerator, divisor, ctx) \ macro
/external/wpa_supplicant_8/src/eap_peer/
Deap_pwd.c394 BN_mod(data->my_scalar, data->my_scalar, data->grp->order, in eap_pwd_perform_commit_exchange()
/external/wpa_supplicant_8/src/eap_server/
Deap_server_pwd.c220 BN_mod(data->my_scalar, data->my_scalar, data->grp->order, in eap_pwd_build_commit_req()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c992 res = BN_mod((BIGNUM *) c, (const BIGNUM *) a, (const BIGNUM *) b, in crypto_bignum_mod()