Home
last modified time | relevance | path

Searched refs:BN_new (Results 1 – 25 of 72) sorted by relevance

123

/external/vboot_reference/utility/
DdumpRSAPublicKey.c59 Big1 = BN_new(); in output()
60 Big2 = BN_new(); in output()
61 Big32 = BN_new(); in output()
62 BigMinus1 = BN_new(); in output()
63 N0inv= BN_new(); in output()
64 R = BN_new(); in output()
65 RR = BN_new(); in output()
66 RRTemp = BN_new(); in output()
67 NnumBits = BN_new(); in output()
68 n = BN_new(); in output()
[all …]
/external/boringssl/src/crypto/bn/
Dbn_test.cc162 bssl::UniquePtr<BIGNUM> ret(BN_new()); in TestSum()
256 bssl::UniquePtr<BIGNUM> zero(BN_new()); in TestLShift1()
263 bssl::UniquePtr<BIGNUM> ret(BN_new()), two(BN_new()), remainder(BN_new()); in TestLShift1()
302 bssl::UniquePtr<BIGNUM> ret(BN_new()); in TestLShift()
322 bssl::UniquePtr<BIGNUM> ret(BN_new()); in TestRShift()
335 bssl::UniquePtr<BIGNUM> zero(BN_new()); in TestSquare()
342 bssl::UniquePtr<BIGNUM> ret(BN_new()), remainder(BN_new()); in TestSquare()
362 bssl::UniquePtr<BIGNUM> tmp(BN_new()); in TestSquare()
392 bssl::UniquePtr<BIGNUM> zero(BN_new()); in TestProduct()
399 bssl::UniquePtr<BIGNUM> ret(BN_new()), remainder(BN_new()); in TestProduct()
[all …]
Dsqrt.c74 ret = BN_new(); in BN_mod_sqrt()
94 ret = BN_new(); in BN_mod_sqrt()
120 ret = BN_new(); in BN_mod_sqrt()
Dconvert.c79 ret = bn = BN_new(); in BN_bin2bn()
124 bn = BN_new(); in BN_le2bn()
389 ret = BN_new(); in bn_x2bn()
645 out = BN_new(); in BN_mpi2bn()
/external/boringssl/src/crypto/ec/
Dec_test.cc144 bssl::UniquePtr<BIGNUM> x(BN_new()); in TEST()
145 bssl::UniquePtr<BIGNUM> y(BN_new()); in TEST()
265 bssl::UniquePtr<BIGNUM> x(BN_new()), y(BN_new()); in TEST()
294 bssl::UniquePtr<BIGNUM> x(BN_new()); in TEST_P()
296 bssl::UniquePtr<BIGNUM> y(BN_new()); in TEST_P()
354 bssl::UniquePtr<BIGNUM> zero(BN_new()); in TEST_P()
/external/wpa_supplicant_8/src/eap_common/
Deap_pwd_common.c152 if (((rnd = BN_new()) == NULL) || in compute_password_element()
153 ((cofactor = BN_new()) == NULL) || in compute_password_element()
155 ((grp->order = BN_new()) == NULL) || in compute_password_element()
156 ((grp->prime = BN_new()) == NULL) || in compute_password_element()
157 ((x_candidate = BN_new()) == NULL)) { in compute_password_element()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c486 bn_result = BN_new(); in crypto_mod_exp()
642 dh->g = BN_new(); in dh5_init()
689 g = BN_new(); in dh5_init()
737 dh->g = BN_new(); in dh5_init_fixed()
769 g = BN_new(); in dh5_init_fixed()
1117 return (struct crypto_bignum *) BN_new(); in crypto_bignum_init()
1332 exp = BN_new(); in crypto_bignum_legendre()
1333 tmp = BN_new(); in crypto_bignum_legendre()
1420 e->prime = BN_new(); in crypto_ec_init()
1421 e->order = BN_new(); in crypto_ec_init()
[all …]
/external/boringssl/src/crypto/rsa/
Drsa_impl.c808 ap->prime = BN_new(); in rsa_default_multi_prime_keygen()
809 ap->exp = BN_new(); in rsa_default_multi_prime_keygen()
810 ap->coeff = BN_new(); in rsa_default_multi_prime_keygen()
811 ap->r = BN_new(); in rsa_default_multi_prime_keygen()
823 if (!rsa->n && ((rsa->n = BN_new()) == NULL)) { in rsa_default_multi_prime_keygen()
826 if (!rsa->d && ((rsa->d = BN_new()) == NULL)) { in rsa_default_multi_prime_keygen()
829 if (!rsa->e && ((rsa->e = BN_new()) == NULL)) { in rsa_default_multi_prime_keygen()
832 if (!rsa->p && ((rsa->p = BN_new()) == NULL)) { in rsa_default_multi_prime_keygen()
835 if (!rsa->q && ((rsa->q = BN_new()) == NULL)) { in rsa_default_multi_prime_keygen()
838 if (!rsa->dmp1 && ((rsa->dmp1 = BN_new()) == NULL)) { in rsa_default_multi_prime_keygen()
[all …]
Dblinding.c140 ret->A = BN_new(); in BN_BLINDING_new()
145 ret->Ai = BN_new(); in BN_BLINDING_new()
Drsa.c761 rsa->p = BN_new(); in RSA_recover_crt_params()
762 rsa->q = BN_new(); in RSA_recover_crt_params()
763 rsa->dmp1 = BN_new(); in RSA_recover_crt_params()
764 rsa->dmq1 = BN_new(); in RSA_recover_crt_params()
765 rsa->iqmp = BN_new(); in RSA_recover_crt_params()
/external/wpa_supplicant_8/src/eap_server/
Deap_server_pwd.c213 if (((data->private_value = BN_new()) == NULL) || in eap_pwd_build_commit_req()
215 ((data->my_scalar = BN_new()) == NULL) || in eap_pwd_build_commit_req()
216 ((mask = BN_new()) == NULL)) { in eap_pwd_build_commit_req()
248 if (((x = BN_new()) == NULL) || in eap_pwd_build_commit_req()
249 ((y = BN_new()) == NULL)) { in eap_pwd_build_commit_req()
324 ((x = BN_new()) == NULL) || ((y = BN_new()) == NULL)) { in eap_pwd_build_confirm_req()
681 if (((data->peer_scalar = BN_new()) == NULL) || in eap_pwd_process_commit_resp()
682 ((data->k = BN_new()) == NULL) || in eap_pwd_process_commit_resp()
683 ((cofactor = BN_new()) == NULL) || in eap_pwd_process_commit_resp()
684 ((x = BN_new()) == NULL) || in eap_pwd_process_commit_resp()
[all …]
/external/openssh/
Dkexgexc.c101 if ((p = BN_new()) == NULL || in input_kex_dh_gex_group()
102 (g = BN_new()) == NULL) { in input_kex_dh_gex_group()
183 if ((dh_server_pub = BN_new()) == NULL) { in input_kex_dh_gex_reply()
206 (shared_secret = BN_new()) == NULL) { in input_kex_dh_gex_reply()
Ddh.c112 if ((dhg->g = BN_new()) == NULL || in parse_prime()
113 (dhg->p = BN_new()) == NULL) { in parse_prime()
232 if ((tmp = BN_new()) == NULL) { in dh_pub_is_valid()
Dsshconnect1.c83 if ((challenge = BN_new()) == NULL) in try_agent_authentication()
256 if ((challenge = BN_new()) == NULL) in try_rsa_authentication()
370 if ((challenge = BN_new()) == NULL) in try_rhosts_rsa_authentication()
576 if ((key = BN_new()) == NULL) in ssh_kex()
Dmoduli.c321 if ((q = BN_new()) == NULL) in gen_candidates()
328 if ((largebase = BN_new()) == NULL) in gen_candidates()
600 if ((p = BN_new()) == NULL) in prime_test()
602 if ((q = BN_new()) == NULL) in prime_test()
Dkexdhc.c128 if ((dh_server_pub = BN_new()) == NULL) { in input_kex_dh()
151 (shared_secret = BN_new()) == NULL) { in input_kex_dh()
Dkexdhs.c114 if ((dh_client_pub = BN_new()) == NULL) { in input_kex_dh_init()
143 (shared_secret = BN_new()) == NULL) { in input_kex_dh_init()
Dssh-dss.c180 (sig->r = BN_new()) == NULL || in ssh_dss_verify()
181 (sig->s = BN_new()) == NULL) { in ssh_dss_verify()
Dauth-rsa.c79 if ((challenge = BN_new()) == NULL) in auth_rsa_generate_challenge()
143 if ((encrypted_challenge = BN_new()) == NULL) in auth_rsa_challenge_dialog()
/external/boringssl/src/crypto/ecdsa/
Decdsa.c251 k = BN_new(); /* this value is later returned in *kinvp */ in ecdsa_sign_setup()
252 r = BN_new(); /* this value is later returned in *rp */ in ecdsa_sign_setup()
253 tmp = BN_new(); in ecdsa_sign_setup()
379 (tmp = BN_new()) == NULL || in ECDSA_do_sign_ex()
380 (m = BN_new()) == NULL) { in ECDSA_do_sign_ex()
Decdsa_asn1.c93 sig->r = BN_new(); in ECDSA_SIG_new()
94 sig->s = BN_new(); in ECDSA_SIG_new()
/external/boringssl/src/crypto/dh/
Ddh.c185 dh->p = BN_new(); in DH_generate_parameters_ex()
191 dh->g = BN_new(); in DH_generate_parameters_ex()
273 priv_key = BN_new(); in DH_generate_key()
283 pub_key = BN_new(); in DH_generate_key()
/external/boringssl/src/crypto/evp/
Dp_dsa_asn1.c85 dsa->pub_key = BN_new(); in dsa_pub_decode()
138 dsa->priv_key = BN_new(); in dsa_priv_decode()
139 dsa->pub_key = BN_new(); in dsa_priv_decode()
/external/wpa_supplicant_8/src/eap_peer/
Deap_pwd.c383 if (((data->private_value = BN_new()) == NULL) || in eap_pwd_perform_commit_exchange()
385 ((cofactor = BN_new()) == NULL) || in eap_pwd_perform_commit_exchange()
386 ((data->my_scalar = BN_new()) == NULL) || in eap_pwd_perform_commit_exchange()
387 ((mask = BN_new()) == NULL)) { in eap_pwd_perform_commit_exchange()
422 if (((x = BN_new()) == NULL) || in eap_pwd_perform_commit_exchange()
423 ((y = BN_new()) == NULL)) { in eap_pwd_perform_commit_exchange()
429 if (((data->server_scalar = BN_new()) == NULL) || in eap_pwd_perform_commit_exchange()
430 ((data->k = BN_new()) == NULL) || in eap_pwd_perform_commit_exchange()
607 ((x = BN_new()) == NULL) || ((y = BN_new()) == NULL)) { in eap_pwd_perform_confirm_exchange()
/external/boringssl/src/crypto/dsa/
Ddsa.c445 priv_key = BN_new(); in DSA_generate_key()
457 pub_key = BN_new(); in DSA_generate_key()
524 s = BN_new(); in DSA_do_sign()
833 r = BN_new(); in DSA_sign_setup()
880 kinv = BN_new(); in DSA_sign_setup()

123