Searched refs:bn_ctx (Results 1 – 6 of 6) sorted by relevance
/third_party/openssl/crypto/srp/ |
D | srp_lib.c | 62 BN_CTX *bn_ctx; in SRP_Calc_server_key() local 67 if ((bn_ctx = BN_CTX_new()) == NULL || (tmp = BN_new()) == NULL) in SRP_Calc_server_key() 72 if (!BN_mod_exp(tmp, v, u, N, bn_ctx)) in SRP_Calc_server_key() 74 if (!BN_mod_mul(tmp, A, tmp, N, bn_ctx)) in SRP_Calc_server_key() 78 if (S != NULL && !BN_mod_exp(S, tmp, b, N, bn_ctx)) { in SRP_Calc_server_key() 83 BN_CTX_free(bn_ctx); in SRP_Calc_server_key() 93 BN_CTX *bn_ctx; in SRP_Calc_B() local 96 (bn_ctx = BN_CTX_new()) == NULL) in SRP_Calc_B() 105 if (!BN_mod_exp(gb, g, b, N, bn_ctx) in SRP_Calc_B() 107 || !BN_mod_mul(kv, v, k, N, bn_ctx) in SRP_Calc_B() [all …]
|
D | srp_vfy.c | 685 BN_CTX *bn_ctx = BN_CTX_new(); in SRP_create_verifier_BN() local 692 (verifier == NULL) || (N == NULL) || (g == NULL) || (bn_ctx == NULL)) in SRP_create_verifier_BN() 714 if (!BN_mod_exp(verif, g, x, N, bn_ctx)) { in SRP_create_verifier_BN() 727 BN_CTX_free(bn_ctx); in SRP_create_verifier_BN()
|
/third_party/openssl/test/ |
D | ectest.c | 1654 BN_CTX *bn_ctx = NULL; in check_named_curve_from_ecparameters() local 1666 if (!TEST_ptr(bn_ctx = BN_CTX_new())) in check_named_curve_from_ecparameters() 1668 BN_CTX_start(bn_ctx); in check_named_curve_from_ecparameters() 1671 !TEST_ptr(group_cofactor = BN_CTX_get(bn_ctx)) in check_named_curve_from_ecparameters() 1672 || !TEST_ptr(other_gen_x = BN_CTX_get(bn_ctx)) in check_named_curve_from_ecparameters() 1673 || !TEST_ptr(other_gen_y = BN_CTX_get(bn_ctx)) in check_named_curve_from_ecparameters() 1674 || !TEST_ptr(other_order = BN_CTX_get(bn_ctx)) in check_named_curve_from_ecparameters() 1675 || !TEST_ptr(other_cofactor = BN_CTX_get(bn_ctx)) in check_named_curve_from_ecparameters() 1687 other_gen_x, other_gen_y, bn_ctx)) in check_named_curve_from_ecparameters() 1700 bn_ctx))) in check_named_curve_from_ecparameters() [all …]
|
/third_party/openssl/crypto/bn/ |
D | build.info | 3 bn_add.c bn_div.c bn_exp.c bn_lib.c bn_ctx.c bn_mul.c bn_mod.c \
|
/third_party/openssl/apps/ |
D | s_client.c | 277 BN_CTX *bn_ctx = BN_CTX_new(); in srp_Verify_N_and_g() local 281 g != NULL && N != NULL && bn_ctx != NULL && BN_is_odd(N) && in srp_Verify_N_and_g() 282 BN_is_prime_ex(N, SRP_NUMBER_ITERATIONS_FOR_PRIME, bn_ctx, NULL) == 1 && in srp_Verify_N_and_g() 285 BN_is_prime_ex(p, SRP_NUMBER_ITERATIONS_FOR_PRIME, bn_ctx, NULL) == 1 && in srp_Verify_N_and_g() 288 BN_mod_exp(r, g, p, N, bn_ctx) && in srp_Verify_N_and_g() 293 BN_CTX_free(bn_ctx); in srp_Verify_N_and_g()
|
/third_party/openssl/ |
D | BUILD.gn | 282 "crypto/bn/bn_ctx.c",
|