Home
last modified time | relevance | path

Searched refs:BN_new (Results 1 – 25 of 64) 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/fipsmodule/bn/
Dbn_test.cc171 bssl::UniquePtr<BIGNUM> ret(BN_new()); in TestSum()
268 bssl::UniquePtr<BIGNUM> zero(BN_new()); in TestLShift1()
275 bssl::UniquePtr<BIGNUM> ret(BN_new()), two(BN_new()), remainder(BN_new()); in TestLShift1()
319 bssl::UniquePtr<BIGNUM> ret(BN_new()); in TestLShift()
336 bssl::UniquePtr<BIGNUM> ret(BN_new()); in TestRShift()
345 bssl::UniquePtr<BIGNUM> zero(BN_new()); in TestSquare()
352 bssl::UniquePtr<BIGNUM> ret(BN_new()), remainder(BN_new()); in TestSquare()
373 bssl::UniquePtr<BIGNUM> tmp(BN_new()); in TestSquare()
419 bssl::UniquePtr<BIGNUM> zero(BN_new()); in TestProduct()
427 bssl::UniquePtr<BIGNUM> ret(BN_new()), remainder(BN_new()); in TestProduct()
[all …]
Dsqrt.c76 ret = BN_new(); in BN_mod_sqrt()
96 ret = BN_new(); in BN_mod_sqrt()
122 ret = BN_new(); in BN_mod_sqrt()
Dbytes.c72 ret = bn = BN_new(); in BN_bin2bn()
117 bn = BN_new(); in BN_le2bn()
/external/boringssl/src/crypto/fipsmodule/ec/
Dec_test.cc145 bssl::UniquePtr<BIGNUM> x(BN_new()); in TEST()
146 bssl::UniquePtr<BIGNUM> y(BN_new()); in TEST()
266 bssl::UniquePtr<BIGNUM> x(BN_new()), y(BN_new()); in TEST()
352 bssl::UniquePtr<BIGNUM> x(BN_new()); in TEST_P()
354 bssl::UniquePtr<BIGNUM> y(BN_new()); in TEST_P()
356 bssl::UniquePtr<BIGNUM> p(BN_new()); in TEST_P()
432 bssl::UniquePtr<BIGNUM> zero(BN_new()); in TEST_P()
474 bssl::UniquePtr<BIGNUM> forty_two(BN_new()); in TEST_P()
497 bssl::UniquePtr<BIGNUM> minus_one(BN_new()); in TEST_P()
502 bssl::UniquePtr<BIGNUM> seven(BN_new()); in TEST_P()
[all …]
Dp256-x86_64_test.cc147 bssl::UniquePtr<BIGNUM> x(BN_new()), y(BN_new()), z(BN_new()); in PointToAffine()
/external/nos/host/android/hals/keymaster/
Dexport_key.cpp52 bssl::UniquePtr<BIGNUM> n(BN_new()); in export_key_der()
57 bssl::UniquePtr<BIGNUM> e(BN_new()); in export_key_der()
127 bssl::UniquePtr<BIGNUM> x(BN_new()); in export_key_der()
131 bssl::UniquePtr<BIGNUM> y(BN_new()); in export_key_der()
/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/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c501 bn_result = BN_new(); in crypto_mod_exp()
657 dh->g = BN_new(); in dh5_init()
704 g = BN_new(); in dh5_init()
752 dh->g = BN_new(); in dh5_init_fixed()
784 g = BN_new(); in dh5_init_fixed()
1151 return (struct crypto_bignum *) BN_new(); in crypto_bignum_init()
1366 exp = BN_new(); in crypto_bignum_legendre()
1367 tmp = BN_new(); in crypto_bignum_legendre()
1456 e->prime = BN_new(); in crypto_ec_init()
1457 e->order = BN_new(); in crypto_ec_init()
[all …]
/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/boringssl/src/crypto/rsa_extra/
Drsa_test.cc515 bssl::UniquePtr<BIGNUM> e(BN_new()); in TEST()
638 bssl::UniquePtr<BIGNUM> e(BN_new()); in TEST()
650 bssl::UniquePtr<BIGNUM> e(BN_new()); in TEST()
711 bssl::UniquePtr<BIGNUM> sqrt(BN_new()), pow2(BN_new()); in TEST()
739 bssl::UniquePtr<BIGNUM> b(BN_new()); in TEST()
/external/boringssl/src/crypto/dh/
Ddh.c221 dh->p = BN_new(); in DH_generate_parameters_ex()
227 dh->g = BN_new(); in DH_generate_parameters_ex()
309 priv_key = BN_new(); in DH_generate_key()
319 pub_key = BN_new(); in DH_generate_key()
Dparams.c80 alloc = BN_new(); in BN_get_rfc3526_prime_1536()
/external/wpa_supplicant_8/src/eap_peer/
Deap_pwd.c381 if (((data->private_value = BN_new()) == NULL) || in eap_pwd_perform_commit_exchange()
383 ((cofactor = BN_new()) == NULL) || in eap_pwd_perform_commit_exchange()
384 ((data->my_scalar = BN_new()) == NULL) || in eap_pwd_perform_commit_exchange()
385 ((mask = BN_new()) == NULL)) { in eap_pwd_perform_commit_exchange()
420 if (((x = BN_new()) == NULL) || in eap_pwd_perform_commit_exchange()
421 ((y = BN_new()) == NULL)) { in eap_pwd_perform_commit_exchange()
427 if (((data->server_scalar = BN_new()) == NULL) || in eap_pwd_perform_commit_exchange()
428 ((data->k = BN_new()) == NULL) || in eap_pwd_perform_commit_exchange()
605 ((x = BN_new()) == NULL) || ((y = BN_new()) == NULL)) { in eap_pwd_perform_confirm_exchange()
/external/boringssl/src/crypto/fipsmodule/ecdsa/
Decdsa_test.cc288 bssl::UniquePtr<BIGNUM> p(BN_new()), a(BN_new()), b(BN_new()), x(BN_new()), in MakeCustomClone()
289 y(BN_new()); in MakeCustomClone()
Decdsa.c178 sig->r = BN_new(); in ECDSA_SIG_new()
179 sig->s = BN_new(); in ECDSA_SIG_new()
312 BIGNUM *r = BN_new(); // this value is later returned in *rp in ecdsa_sign_setup()
/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/boringssl/src/fipstools/
Dcavp_ecdsa2_keypair_test.cc48 bssl::UniquePtr<BIGNUM> qx(BN_new()), qy(BN_new()); in TestECDSA2KeyPair()
Dcavp_rsa2_sigver_test.cc65 key->n = BN_new(); in TestRSA2SigVer()
66 key->e = BN_new(); in TestRSA2SigVer()
Dcavp_ecdsa2_siggen_test.cc40 bssl::UniquePtr<BIGNUM> qx(BN_new()), qy(BN_new()); in TestECDSA2SigGenImpl()
Dcavp_kas_test.cc117 bssl::UniquePtr<BIGNUM> x(BN_new()); in TestKAS()
118 bssl::UniquePtr<BIGNUM> y(BN_new()); in TestKAS()
/external/boringssl/src/crypto/fipsmodule/rsa/
Dblinding.c140 ret->A = BN_new(); in BN_BLINDING_new()
145 ret->Ai = BN_new(); in BN_BLINDING_new()
/external/boringssl/src/crypto/dsa/
Ddsa.c482 priv_key = BN_new(); in DSA_generate_key()
494 pub_key = BN_new(); in DSA_generate_key()
560 s = BN_new(); in DSA_do_sign()
857 r = BN_new(); in dsa_sign_setup()
904 kinv = BN_new(); in dsa_sign_setup()
/external/boringssl/src/tool/
Dgenrsa.cc49 bssl::UniquePtr<BIGNUM> e(BN_new()); in GenerateRSAKey()
/external/boringssl/src/crypto/bn_extra/
Dconvert.c212 ret = BN_new(); in bn_x2bn()
440 out = BN_new(); in BN_mpi2bn()

123