/third_party/node/deps/openssl/openssl/crypto/srp/ |
H A D | srp_lib.c | 80 BN_CTX *bn_ctx; in SRP_Calc_server_key() local 85 if ((bn_ctx = BN_CTX_new()) == NULL || (tmp = BN_new()) == NULL) in SRP_Calc_server_key() 90 if (!BN_mod_exp(tmp, v, u, N, bn_ctx)) in SRP_Calc_server_key() 92 if (!BN_mod_mul(tmp, A, tmp, N, bn_ctx)) in SRP_Calc_server_key() 96 if (S != NULL && !BN_mod_exp(S, tmp, b, N, bn_ctx)) { in SRP_Calc_server_key() 101 BN_CTX_free(bn_ctx); in SRP_Calc_server_key() 111 BN_CTX *bn_ctx; in SRP_Calc_B_ex() local 114 (bn_ctx = BN_CTX_new_ex(libctx)) == NULL) in SRP_Calc_B_ex() 123 if (!BN_mod_exp(gb, g, b, N, bn_ctx) in SRP_Calc_B_ex() 125 || !BN_mod_mul(kv, v, k, N, bn_ctx) in SRP_Calc_B_ex() 198 BN_CTX *bn_ctx; SRP_Calc_A() local 218 BN_CTX *bn_ctx; SRP_Calc_client_key_ex() local 269 BN_CTX *bn_ctx; SRP_Verify_B_mod_N() local [all...] |
H A D | srp_vfy.c | 721 BN_CTX *bn_ctx = BN_CTX_new_ex(libctx); in SRP_create_verifier_BN_ex() local 728 (verifier == NULL) || (N == NULL) || (g == NULL) || (bn_ctx == NULL)) in SRP_create_verifier_BN_ex() 750 if (!BN_mod_exp(verif, g, x, N, bn_ctx)) { in SRP_create_verifier_BN_ex() 763 BN_CTX_free(bn_ctx); in SRP_create_verifier_BN_ex()
|
/third_party/openssl/crypto/srp/ |
H A D | srp_lib.c | 80 BN_CTX *bn_ctx; in SRP_Calc_server_key() local 85 if ((bn_ctx = BN_CTX_new()) == NULL || (tmp = BN_new()) == NULL) in SRP_Calc_server_key() 90 if (!BN_mod_exp(tmp, v, u, N, bn_ctx)) in SRP_Calc_server_key() 92 if (!BN_mod_mul(tmp, A, tmp, N, bn_ctx)) in SRP_Calc_server_key() 96 if (S != NULL && !BN_mod_exp(S, tmp, b, N, bn_ctx)) { in SRP_Calc_server_key() 101 BN_CTX_free(bn_ctx); in SRP_Calc_server_key() 111 BN_CTX *bn_ctx; in SRP_Calc_B_ex() local 114 (bn_ctx = BN_CTX_new_ex(libctx)) == NULL) in SRP_Calc_B_ex() 123 if (!BN_mod_exp(gb, g, b, N, bn_ctx) in SRP_Calc_B_ex() 125 || !BN_mod_mul(kv, v, k, N, bn_ctx) in SRP_Calc_B_ex() 198 BN_CTX *bn_ctx; SRP_Calc_A() local 218 BN_CTX *bn_ctx; SRP_Calc_client_key_ex() local 269 BN_CTX *bn_ctx; SRP_Verify_B_mod_N() local [all...] |
H A D | srp_vfy.c | 722 BN_CTX *bn_ctx = BN_CTX_new_ex(libctx); in SRP_create_verifier_BN_ex() local 729 (verifier == NULL) || (N == NULL) || (g == NULL) || (bn_ctx == NULL)) in SRP_create_verifier_BN_ex() 751 if (!BN_mod_exp(verif, g, x, N, bn_ctx)) { in SRP_create_verifier_BN_ex() 764 BN_CTX_free(bn_ctx); in SRP_create_verifier_BN_ex()
|
/third_party/node/deps/openssl/openssl/apps/lib/ |
H A D | tlssrp_depr.c | 29 BN_CTX *bn_ctx = BN_CTX_new(); in srp_Verify_N_and_g() local 33 g != NULL && N != NULL && bn_ctx != NULL && BN_is_odd(N) && in srp_Verify_N_and_g() 34 BN_check_prime(N, bn_ctx, NULL) == 1 && in srp_Verify_N_and_g() 37 BN_check_prime(p, bn_ctx, NULL) == 1 && in srp_Verify_N_and_g() 40 BN_mod_exp(r, g, p, N, bn_ctx) && in srp_Verify_N_and_g() 45 BN_CTX_free(bn_ctx); in srp_Verify_N_and_g()
|
/third_party/openssl/apps/lib/ |
H A D | tlssrp_depr.c | 29 BN_CTX *bn_ctx = BN_CTX_new(); in srp_Verify_N_and_g() local 33 g != NULL && N != NULL && bn_ctx != NULL && BN_is_odd(N) && in srp_Verify_N_and_g() 34 BN_check_prime(N, bn_ctx, NULL) == 1 && in srp_Verify_N_and_g() 37 BN_check_prime(p, bn_ctx, NULL) == 1 && in srp_Verify_N_and_g() 40 BN_mod_exp(r, g, p, N, bn_ctx) && in srp_Verify_N_and_g() 45 BN_CTX_free(bn_ctx); in srp_Verify_N_and_g()
|
/third_party/openssl/test/ |
H A D | acvp_test.c | 456 BN_CTX *bn_ctx) in dsa_create_pkey() 465 || !TEST_ptr(p_bn = BN_CTX_get(bn_ctx)) in dsa_create_pkey() 474 || !TEST_ptr(q_bn = BN_CTX_get(bn_ctx)) in dsa_create_pkey() 480 if (!TEST_ptr(g_bn = BN_CTX_get(bn_ctx)) in dsa_create_pkey() 498 if (!TEST_ptr(pub_bn = BN_CTX_get(bn_ctx)) in dsa_create_pkey() 523 BN_CTX *bn_ctx = NULL; in dsa_pqver_test() local 528 if (!TEST_ptr(bn_ctx = BN_CTX_new_ex(libctx)) in dsa_pqver_test() 534 bn_ctx)) in dsa_pqver_test() 542 BN_CTX_free(bn_ctx); in dsa_pqver_test() 627 BN_CTX *bn_ctx in dsa_sigver_test() local 448 dsa_create_pkey(EVP_PKEY **pkey, const unsigned char *p, size_t p_len, const unsigned char *q, size_t q_len, const unsigned char *g, size_t g_len, const unsigned char *seed, size_t seed_len, int counter, int validate_pq, int validate_g, const unsigned char *pub, size_t pub_len, BN_CTX *bn_ctx) dsa_create_pkey() argument 894 dh_create_pkey(EVP_PKEY **pkey, const char *group_name, const unsigned char *pub, size_t pub_len, const unsigned char *priv, size_t priv_len, BN_CTX *bn_ctx, int pass) dh_create_pkey() argument 981 BN_CTX *bn_ctx = NULL; dh_safe_prime_keyver_test() local 1004 rsa_create_pkey(EVP_PKEY **pkey, const unsigned char *n, size_t n_len, const unsigned char *e, size_t e_len, const unsigned char *d, size_t d_len, BN_CTX *bn_ctx) rsa_create_pkey() argument 1205 BN_CTX *bn_ctx = NULL; rsa_sigver_test() local 1251 BN_CTX *bn_ctx = NULL; rsa_decryption_primitive_test() local [all...] |
H A D | ectest.c | 1509 BN_CTX *bn_ctx = NULL; in check_named_curve_test() local 1515 if (!TEST_ptr(bn_ctx = BN_CTX_new()) in check_named_curve_test() 1683 BN_CTX_free(bn_ctx); in check_named_curve_test() 1831 BN_CTX *bn_ctx = NULL; in check_named_curve_from_ecparameters() local 1843 if (!TEST_ptr(bn_ctx = BN_CTX_new())) in check_named_curve_from_ecparameters() 1845 BN_CTX_start(bn_ctx); in check_named_curve_from_ecparameters() 1848 !TEST_ptr(group_cofactor = BN_CTX_get(bn_ctx)) in check_named_curve_from_ecparameters() 1849 || !TEST_ptr(other_gen_x = BN_CTX_get(bn_ctx)) in check_named_curve_from_ecparameters() 1850 || !TEST_ptr(other_gen_y = BN_CTX_get(bn_ctx)) in check_named_curve_from_ecparameters() 1851 || !TEST_ptr(other_order = BN_CTX_get(bn_ctx)) in check_named_curve_from_ecparameters() [all...] |