Home
last modified time | relevance | path

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

12

/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.cc341 ScopedBIGNUM a(BN_new()); in test_add()
342 ScopedBIGNUM b(BN_new()); in test_add()
343 ScopedBIGNUM c(BN_new()); in test_add()
380 ScopedBIGNUM a(BN_new()); in test_sub()
381 ScopedBIGNUM b(BN_new()); in test_sub()
382 ScopedBIGNUM c(BN_new()); in test_sub()
426 ScopedBIGNUM a(BN_new()); in test_div()
427 ScopedBIGNUM b(BN_new()); in test_div()
428 ScopedBIGNUM c(BN_new()); in test_div()
429 ScopedBIGNUM d(BN_new()); in test_div()
[all …]
Dsqrt.c75 ret = BN_new(); in BN_mod_sqrt()
95 ret = BN_new(); in BN_mod_sqrt()
121 ret = BN_new(); in BN_mod_sqrt()
Dbn.c68 BIGNUM *BN_new(void) { in BN_new() function
130 copy = BN_new(); in BN_dup()
Dconvert.c79 ret = bn = BN_new(); in BN_bin2bn()
341 ret = BN_new(); in bn_x2bn()
582 out = BN_new(); in BN_mpi2bn()
/external/boringssl/src/crypto/ec/
Dec_test.cc115 ScopedBIGNUM x(BN_new()); in Testd2i_ECPrivateKey()
116 ScopedBIGNUM y(BN_new()); in Testd2i_ECPrivateKey()
196 ScopedBIGNUM x(BN_new()); in TestSetAffine()
197 ScopedBIGNUM y(BN_new()); in TestSetAffine()
Dexample_mul.c87 n = BN_new(); in example_EC_POINT_mul()
/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/
Drsa_impl.c851 ap->prime = BN_new(); in rsa_default_multi_prime_keygen()
852 ap->exp = BN_new(); in rsa_default_multi_prime_keygen()
853 ap->coeff = BN_new(); in rsa_default_multi_prime_keygen()
854 ap->r = BN_new(); in rsa_default_multi_prime_keygen()
866 if (!rsa->n && ((rsa->n = BN_new()) == NULL)) { in rsa_default_multi_prime_keygen()
869 if (!rsa->d && ((rsa->d = BN_new()) == NULL)) { in rsa_default_multi_prime_keygen()
872 if (!rsa->e && ((rsa->e = BN_new()) == NULL)) { in rsa_default_multi_prime_keygen()
875 if (!rsa->p && ((rsa->p = BN_new()) == NULL)) { in rsa_default_multi_prime_keygen()
878 if (!rsa->q && ((rsa->q = BN_new()) == NULL)) { in rsa_default_multi_prime_keygen()
881 if (!rsa->dmp1 && ((rsa->dmp1 = BN_new()) == NULL)) { in rsa_default_multi_prime_keygen()
[all …]
Drsa_test.cc647 ScopedBIGNUM e(BN_new()); in TestMultiPrimeKeygen()
668 ScopedBIGNUM e(BN_new()); in TestBadKey()
739 ScopedBIGNUM e(BN_new()); in TestRecoverCRTParams()
Drsa.c739 rsa->p = BN_new(); in RSA_recover_crt_params()
740 rsa->q = BN_new(); in RSA_recover_crt_params()
741 rsa->dmp1 = BN_new(); in RSA_recover_crt_params()
742 rsa->dmq1 = BN_new(); in RSA_recover_crt_params()
743 rsa->iqmp = BN_new(); in RSA_recover_crt_params()
Dblinding.c304 if (ret->A == NULL && (ret->A = BN_new()) == NULL) { in BN_BLINDING_create_param()
307 if (ret->Ai == NULL && (ret->Ai = BN_new()) == NULL) { in BN_BLINDING_create_param()
/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()
679 if (((data->peer_scalar = BN_new()) == NULL) || in eap_pwd_process_commit_resp()
680 ((data->k = BN_new()) == NULL) || in eap_pwd_process_commit_resp()
681 ((cofactor = BN_new()) == NULL) || in eap_pwd_process_commit_resp()
682 ((x = BN_new()) == NULL) || in eap_pwd_process_commit_resp()
[all …]
/external/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c462 bn_result = BN_new(); in crypto_mod_exp()
616 dh->g = BN_new(); in dh5_init()
659 dh->g = BN_new(); in dh5_init_fixed()
1003 return (struct crypto_bignum *) BN_new(); in crypto_bignum_init()
1218 exp = BN_new(); in crypto_bignum_legendre()
1219 tmp = BN_new(); in crypto_bignum_legendre()
1306 e->prime = BN_new(); in crypto_ec_init()
1307 e->order = BN_new(); in crypto_ec_init()
1308 e->a = BN_new(); in crypto_ec_init()
1309 e->b = BN_new(); in crypto_ec_init()
[all …]
/external/boringssl/src/crypto/dh/
Ddh.c163 dh->p = BN_new(); in DH_generate_parameters_ex()
169 dh->g = BN_new(); in DH_generate_parameters_ex()
254 priv_key = BN_new(); in DH_generate_key()
264 pub_key = BN_new(); in DH_generate_key()
/external/boringssl/src/crypto/ecdsa/
Decdsa.c256 k = BN_new(); /* this value is later returned in *kinvp */ in ecdsa_sign_setup()
257 r = BN_new(); /* this value is later returned in *rp */ in ecdsa_sign_setup()
258 X = BN_new(); in ecdsa_sign_setup()
396 (tmp = BN_new()) == NULL || in ECDSA_do_sign_ex()
397 (m = BN_new()) == NULL) { in ECDSA_do_sign_ex()
Decdsa_asn1.c92 sig->r = BN_new(); in ECDSA_SIG_new()
93 sig->s = BN_new(); in ECDSA_SIG_new()
/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/decrepit/rsa/
Drsa_decrepit.c70 BIGNUM *e = BN_new(); in RSA_generate_key()
/external/boringssl/src/tool/
Dgenrsa.cc55 ScopedBIGNUM e(BN_new()); in GenerateRSAKey()
/external/ipsec-tools/src/racoon/
Dprsa_tok.l64 BIGNUM *bn = BN_new();
/external/google-tv-pairing-protocol/cpp/src/polo/util/
Dpoloutil.cc48 BIGNUM* bn = BN_new(); in IntToBigEndianBytes()
/external/boringssl/src/crypto/asn1/
Dx_bignum.c97 *pval = (ASN1_VALUE *)BN_new(); in ASN1_ITEM_start()
/external/boringssl/src/crypto/dsa/
Ddsa.c409 priv_key = BN_new(); in DSA_generate_key()
423 pub_key = BN_new(); in DSA_generate_key()
490 s = BN_new(); in DSA_do_sign()
786 r = BN_new(); in DSA_sign_setup()
/external/libchrome/crypto/
Drsa_private_key_openssl.cc61 ScopedBIGNUM bn(BN_new()); in Create()

12