/external/openssl/crypto/srp/ |
D | srp_lib.c | 146 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 …]
|
D | srp_vfy.c | 611 BN_CTX *bn_ctx = BN_CTX_new(); in SRP_create_verifier_BN() local 620 (bn_ctx == NULL)) in SRP_create_verifier_BN() 638 if (!BN_mod_exp(*verifier,g,x,N,bn_ctx)) in SRP_create_verifier_BN() 651 BN_CTX_free(bn_ctx); in SRP_create_verifier_BN()
|
/external/openssh/ |
D | jpake.c | 199 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 …]
|
D | schnorr.c | 131 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/openssl/ssl/ |
D | d1_srvr.c | 1039 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()
|
D | d1_clnt.c | 973 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()
|
D | s3_srvr.c | 1571 BN_CTX *bn_ctx = NULL; in ssl3_send_server_key_exchange() local 1768 bn_ctx = BN_CTX_new(); in ssl3_send_server_key_exchange() 1769 if ((encodedPoint == NULL) || (bn_ctx == NULL)) in ssl3_send_server_key_exchange() 1779 encodedPoint, encodedlen, bn_ctx); in ssl3_send_server_key_exchange() 1787 BN_CTX_free(bn_ctx); bn_ctx=NULL; in ssl3_send_server_key_exchange() 2021 BN_CTX_free(bn_ctx); in ssl3_send_server_key_exchange() 2146 BN_CTX *bn_ctx = NULL; in ssl3_get_client_key_exchange() local 2619 if ((bn_ctx = BN_CTX_new()) == NULL) in ssl3_get_client_key_exchange() 2636 clnt_ecpoint, p, i, bn_ctx) == 0) in ssl3_get_client_key_exchange() 2667 BN_CTX_free(bn_ctx); in ssl3_get_client_key_exchange() [all …]
|
D | s3_clnt.c | 1337 BN_CTX *bn_ctx = NULL; in ssl3_get_key_exchange() local 1722 ((bn_ctx = BN_CTX_new()) == NULL)) in ssl3_get_key_exchange() 1733 p, encoded_pt_len, bn_ctx) == 0)) in ssl3_get_key_exchange() 1760 BN_CTX_free(bn_ctx); in ssl3_get_key_exchange() 1761 bn_ctx = NULL; in ssl3_get_key_exchange() 1907 BN_CTX_free(bn_ctx); in ssl3_get_key_exchange() 2292 BN_CTX * bn_ctx = NULL; in ssl3_send_client_key_exchange() local 2717 bn_ctx = BN_CTX_new(); in ssl3_send_client_key_exchange() 2719 (bn_ctx == NULL)) in ssl3_send_client_key_exchange() 2729 encodedPoint, encoded_pt_len, bn_ctx); in ssl3_send_client_key_exchange() [all …]
|
/external/openssl/apps/ |
D | s_client.c | 409 BN_CTX *bn_ctx = BN_CTX_new(); in srp_Verify_N_and_g() local 413 g != NULL && N != NULL && bn_ctx != NULL && BN_is_odd(N) && in srp_Verify_N_and_g() 414 BN_is_prime_ex(N, SRP_NUMBER_ITERATIONS_FOR_PRIME, bn_ctx, NULL) && in srp_Verify_N_and_g() 418 BN_is_prime_ex(p, SRP_NUMBER_ITERATIONS_FOR_PRIME, bn_ctx, NULL) && in srp_Verify_N_and_g() 422 BN_mod_exp(r, g, p, N, bn_ctx) && in srp_Verify_N_and_g() 430 if(bn_ctx) in srp_Verify_N_and_g() 431 BN_CTX_free(bn_ctx); in srp_Verify_N_and_g()
|
/external/openssl/ |
D | Crypto.mk | 149 crypto/bn/bn_ctx.c \
|