Home
last modified time | relevance | path

Searched refs:bn_ctx (Results 1 – 25 of 28) sorted by relevance

12

/external/chromium_org/third_party/openssl/openssl/crypto/srp/
Dsrp_lib.c146 BN_CTX *bn_ctx; in SRP_Calc_server_key() local
151 if ((bn_ctx = BN_CTX_new()) == NULL || in SRP_Calc_server_key()
158 if (!BN_mod_exp(tmp,v,u,N,bn_ctx)) in SRP_Calc_server_key()
160 if (!BN_mod_mul(tmp,A,tmp,N,bn_ctx)) in SRP_Calc_server_key()
162 if (!BN_mod_exp(S,tmp,b,N,bn_ctx)) in SRP_Calc_server_key()
165 BN_CTX_free(bn_ctx); in SRP_Calc_server_key()
174 BN_CTX *bn_ctx; in SRP_Calc_B() local
177 (bn_ctx = BN_CTX_new()) == NULL) in SRP_Calc_B()
187 if (!BN_mod_exp(gb,g,b,N,bn_ctx) || in SRP_Calc_B()
189 !BN_mod_mul(kv,v,k,N,bn_ctx) || in SRP_Calc_B()
[all …]
Dsrp_vfy.c612 BN_CTX *bn_ctx = BN_CTX_new(); in SRP_create_verifier_BN() local
621 (bn_ctx == NULL)) in SRP_create_verifier_BN()
639 if (!BN_mod_exp(*verifier,g,x,N,bn_ctx)) in SRP_create_verifier_BN()
652 BN_CTX_free(bn_ctx); in SRP_create_verifier_BN()
/external/openssl/crypto/srp/
Dsrp_lib.c146 BN_CTX *bn_ctx; in SRP_Calc_server_key() local
151 if ((bn_ctx = BN_CTX_new()) == NULL || in SRP_Calc_server_key()
158 if (!BN_mod_exp(tmp,v,u,N,bn_ctx)) in SRP_Calc_server_key()
160 if (!BN_mod_mul(tmp,A,tmp,N,bn_ctx)) in SRP_Calc_server_key()
162 if (!BN_mod_exp(S,tmp,b,N,bn_ctx)) in SRP_Calc_server_key()
165 BN_CTX_free(bn_ctx); in SRP_Calc_server_key()
174 BN_CTX *bn_ctx; in SRP_Calc_B() local
177 (bn_ctx = BN_CTX_new()) == NULL) in SRP_Calc_B()
187 if (!BN_mod_exp(gb,g,b,N,bn_ctx) || in SRP_Calc_B()
189 !BN_mod_mul(kv,v,k,N,bn_ctx) || in SRP_Calc_B()
[all …]
Dsrp_vfy.c612 BN_CTX *bn_ctx = BN_CTX_new(); in SRP_create_verifier_BN() local
621 (bn_ctx == NULL)) in SRP_create_verifier_BN()
639 if (!BN_mod_exp(*verifier,g,x,N,bn_ctx)) in SRP_create_verifier_BN()
652 BN_CTX_free(bn_ctx); in SRP_create_verifier_BN()
/external/openssh/
Djpake.c199 BN_CTX *bn_ctx; in jpake_step1() local
201 if ((bn_ctx = BN_CTX_new()) == NULL) in jpake_step1()
226 if (BN_mod_exp(*g_priv1, grp->g, *priv1, grp->p, bn_ctx) == -1) in jpake_step1()
228 if (BN_mod_exp(*g_priv2, grp->g, *priv2, grp->p, bn_ctx) == -1) in jpake_step1()
241 BN_CTX_free(bn_ctx); in jpake_step1()
255 BN_CTX *bn_ctx; in jpake_step2() local
275 if ((bn_ctx = BN_CTX_new()) == NULL) in jpake_step2()
287 if (BN_mod_mul(exponent, mypriv2, s, grp->q, bn_ctx) != 1) in jpake_step2()
295 if (BN_mod_mul(tmp, mypub1, theirpub1, grp->p, bn_ctx) != 1) in jpake_step2()
298 if (BN_mod_mul(tmp, tmp, theirpub2, grp->p, bn_ctx) != 1) in jpake_step2()
[all …]
Dschnorr.c131 BN_CTX *bn_ctx; in schnorr_sign() local
147 if ((bn_ctx = BN_CTX_new()) == NULL) { in schnorr_sign()
169 if (BN_mod_exp(g_v, grp_g, v, grp_p, bn_ctx) == -1) { in schnorr_sign()
183 if (BN_mod_mul(tmp, x, h, grp_q, bn_ctx) == -1) { in schnorr_sign()
187 if (BN_mod_sub(r, v, tmp, grp_q, bn_ctx) == -1) { in schnorr_sign()
199 BN_CTX_free(bn_ctx); in schnorr_sign()
263 BN_CTX *bn_ctx; in schnorr_verify() local
278 if ((bn_ctx = BN_CTX_new()) == NULL) { in schnorr_verify()
294 if (BN_mod_exp(gx_q, g_x, grp_q, grp_p, bn_ctx) == -1) { in schnorr_verify()
312 if (BN_mod_exp(g_xh, g_x, h, grp_p, bn_ctx) == -1) { in schnorr_verify()
[all …]
/external/chromium_org/third_party/openssl/openssl/ssl/
Dd1_srvr.c1039 BN_CTX *bn_ctx = NULL; in dtls1_send_server_key_exchange() local
1237 bn_ctx = BN_CTX_new(); in dtls1_send_server_key_exchange()
1238 if ((encodedPoint == NULL) || (bn_ctx == NULL)) in dtls1_send_server_key_exchange()
1248 encodedPoint, encodedlen, bn_ctx); in dtls1_send_server_key_exchange()
1256 BN_CTX_free(bn_ctx); bn_ctx=NULL; in dtls1_send_server_key_exchange()
1462 BN_CTX_free(bn_ctx); in dtls1_send_server_key_exchange()
Dd1_clnt.c973 BN_CTX * bn_ctx = NULL; in dtls1_send_client_key_exchange() local
1386 bn_ctx = BN_CTX_new(); in dtls1_send_client_key_exchange()
1388 (bn_ctx == NULL)) in dtls1_send_client_key_exchange()
1398 encodedPoint, encoded_pt_len, bn_ctx); in dtls1_send_client_key_exchange()
1410 BN_CTX_free(bn_ctx); in dtls1_send_client_key_exchange()
1529 BN_CTX_free(bn_ctx); in dtls1_send_client_key_exchange()
Ds3_clnt.c1360 BN_CTX *bn_ctx = NULL; in ssl3_get_key_exchange() local
1745 ((bn_ctx = BN_CTX_new()) == NULL)) in ssl3_get_key_exchange()
1756 p, encoded_pt_len, bn_ctx) == 0)) in ssl3_get_key_exchange()
1783 BN_CTX_free(bn_ctx); in ssl3_get_key_exchange()
1784 bn_ctx = NULL; in ssl3_get_key_exchange()
1930 BN_CTX_free(bn_ctx); in ssl3_get_key_exchange()
2315 BN_CTX * bn_ctx = NULL; in ssl3_send_client_key_exchange() local
2747 bn_ctx = BN_CTX_new(); in ssl3_send_client_key_exchange()
2749 (bn_ctx == NULL)) in ssl3_send_client_key_exchange()
2759 encodedPoint, encoded_pt_len, bn_ctx); in ssl3_send_client_key_exchange()
[all …]
Ds3_srvr.c1601 BN_CTX *bn_ctx = NULL; in ssl3_send_server_key_exchange() local
1798 bn_ctx = BN_CTX_new(); in ssl3_send_server_key_exchange()
1799 if ((encodedPoint == NULL) || (bn_ctx == NULL)) in ssl3_send_server_key_exchange()
1809 encodedPoint, encodedlen, bn_ctx); in ssl3_send_server_key_exchange()
1817 BN_CTX_free(bn_ctx); bn_ctx=NULL; in ssl3_send_server_key_exchange()
2051 BN_CTX_free(bn_ctx); in ssl3_send_server_key_exchange()
2176 BN_CTX *bn_ctx = NULL; in ssl3_get_client_key_exchange() local
2649 if ((bn_ctx = BN_CTX_new()) == NULL) in ssl3_get_client_key_exchange()
2666 clnt_ecpoint, p, i, bn_ctx) == 0) in ssl3_get_client_key_exchange()
2697 BN_CTX_free(bn_ctx); in ssl3_get_client_key_exchange()
[all …]
/external/openssl/ssl/
Dd1_srvr.c1039 BN_CTX *bn_ctx = NULL; in dtls1_send_server_key_exchange() local
1237 bn_ctx = BN_CTX_new(); in dtls1_send_server_key_exchange()
1238 if ((encodedPoint == NULL) || (bn_ctx == NULL)) in dtls1_send_server_key_exchange()
1248 encodedPoint, encodedlen, bn_ctx); in dtls1_send_server_key_exchange()
1256 BN_CTX_free(bn_ctx); bn_ctx=NULL; in dtls1_send_server_key_exchange()
1462 BN_CTX_free(bn_ctx); in dtls1_send_server_key_exchange()
Dd1_clnt.c973 BN_CTX * bn_ctx = NULL; in dtls1_send_client_key_exchange() local
1386 bn_ctx = BN_CTX_new(); in dtls1_send_client_key_exchange()
1388 (bn_ctx == NULL)) in dtls1_send_client_key_exchange()
1398 encodedPoint, encoded_pt_len, bn_ctx); in dtls1_send_client_key_exchange()
1410 BN_CTX_free(bn_ctx); in dtls1_send_client_key_exchange()
1529 BN_CTX_free(bn_ctx); in dtls1_send_client_key_exchange()
Ds3_srvr.c1600 BN_CTX *bn_ctx = NULL; in ssl3_send_server_key_exchange() local
1797 bn_ctx = BN_CTX_new(); in ssl3_send_server_key_exchange()
1798 if ((encodedPoint == NULL) || (bn_ctx == NULL)) in ssl3_send_server_key_exchange()
1808 encodedPoint, encodedlen, bn_ctx); in ssl3_send_server_key_exchange()
1816 BN_CTX_free(bn_ctx); bn_ctx=NULL; in ssl3_send_server_key_exchange()
2050 BN_CTX_free(bn_ctx); in ssl3_send_server_key_exchange()
2175 BN_CTX *bn_ctx = NULL; in ssl3_get_client_key_exchange() local
2648 if ((bn_ctx = BN_CTX_new()) == NULL) in ssl3_get_client_key_exchange()
2665 clnt_ecpoint, p, i, bn_ctx) == 0) in ssl3_get_client_key_exchange()
2696 BN_CTX_free(bn_ctx); in ssl3_get_client_key_exchange()
[all …]
Ds3_clnt.c1359 BN_CTX *bn_ctx = NULL; in ssl3_get_key_exchange() local
1744 ((bn_ctx = BN_CTX_new()) == NULL)) in ssl3_get_key_exchange()
1755 p, encoded_pt_len, bn_ctx) == 0)) in ssl3_get_key_exchange()
1782 BN_CTX_free(bn_ctx); in ssl3_get_key_exchange()
1783 bn_ctx = NULL; in ssl3_get_key_exchange()
1929 BN_CTX_free(bn_ctx); in ssl3_get_key_exchange()
2315 BN_CTX * bn_ctx = NULL; in ssl3_send_client_key_exchange() local
2740 bn_ctx = BN_CTX_new(); in ssl3_send_client_key_exchange()
2742 (bn_ctx == NULL)) in ssl3_send_client_key_exchange()
2752 encodedPoint, encoded_pt_len, bn_ctx); in ssl3_send_client_key_exchange()
[all …]
/external/chromium_org/third_party/openssl/openssl/apps/
Ds_client.c411 BN_CTX *bn_ctx = BN_CTX_new(); in srp_Verify_N_and_g() local
415 g != NULL && N != NULL && bn_ctx != NULL && BN_is_odd(N) && in srp_Verify_N_and_g()
416 BN_is_prime_ex(N, SRP_NUMBER_ITERATIONS_FOR_PRIME, bn_ctx, NULL) && in srp_Verify_N_and_g()
420 BN_is_prime_ex(p, SRP_NUMBER_ITERATIONS_FOR_PRIME, bn_ctx, NULL) && in srp_Verify_N_and_g()
424 BN_mod_exp(r, g, p, N, bn_ctx) && in srp_Verify_N_and_g()
432 if(bn_ctx) in srp_Verify_N_and_g()
433 BN_CTX_free(bn_ctx); in srp_Verify_N_and_g()
/external/openssl/apps/
Ds_client.c412 BN_CTX *bn_ctx = BN_CTX_new(); in srp_Verify_N_and_g() local
416 g != NULL && N != NULL && bn_ctx != NULL && BN_is_odd(N) && in srp_Verify_N_and_g()
417 BN_is_prime_ex(N, SRP_NUMBER_ITERATIONS_FOR_PRIME, bn_ctx, NULL) && in srp_Verify_N_and_g()
421 BN_is_prime_ex(p, SRP_NUMBER_ITERATIONS_FOR_PRIME, bn_ctx, NULL) && in srp_Verify_N_and_g()
425 BN_mod_exp(r, g, p, N, bn_ctx) && in srp_Verify_N_and_g()
433 if(bn_ctx) in srp_Verify_N_and_g()
434 BN_CTX_free(bn_ctx); in srp_Verify_N_and_g()
/external/openssl/
DCrypto-config.mk146 crypto/bn/bn_ctx.c \
Dopenssl.config411 crypto/bn/bn_ctx.c \
/external/chromium_org/third_party/openssl/openssl/
DCrypto-config.mk146 crypto/bn/bn_ctx.c \
Dopenssl.config410 crypto/bn/bn_ctx.c \
Dopenssl.config.orig410 crypto/bn/bn_ctx.c \
/external/chromium_org/third_party/openssl/
Dopenssl.gypi132 'openssl/crypto/bn/bn_ctx.c',
Dopenssl.target.darwin-x86.mk145 third_party/openssl/openssl/crypto/bn/bn_ctx.c \
Dopenssl.target.linux-mips.mk148 third_party/openssl/openssl/crypto/bn/bn_ctx.c \
Dopenssl.target.darwin-mips.mk148 third_party/openssl/openssl/crypto/bn/bn_ctx.c \

12