Searched refs:bn_ctx (Results 1 – 9 of 9) sorted by relevance
/freebsd/crypto/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() [all …]
|
H A D | srp_vfy.c | 723 BN_CTX *bn_ctx = BN_CTX_new_ex(libctx); in SRP_create_verifier_BN_ex() local 730 (verifier == NULL) || (N == NULL) || (g == NULL) || (bn_ctx == NULL)) in SRP_create_verifier_BN_ex() 752 if (!BN_mod_exp(verif, g, x, N, bn_ctx)) { in SRP_create_verifier_BN_ex() 765 BN_CTX_free(bn_ctx); in SRP_create_verifier_BN_ex()
|
/freebsd/crypto/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()
|
/freebsd/crypto/openssl/test/ |
H A D | acvp_test.c | 456 BN_CTX *bn_ctx) in dsa_create_pkey() argument 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 = NULL; in dsa_sigver_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 …]
|
/freebsd/crypto/openssl/crypto/bn/ |
H A D | build.info | 104 $COMMON=bn_add.c bn_div.c bn_exp.c bn_lib.c bn_ctx.c bn_mul.c \
|
/freebsd/crypto/openssl/providers/ |
H A D | fips.module.sources | 77 crypto/bn/bn_ctx.c
|
H A D | fips-sources.checksums | 77 2893b6d03d4850d09c15959941b0759bbb50d8c20e873bed088e7cde4e15a65a crypto/bn/bn_ctx.c
|
/freebsd/secure/lib/libcrypto/ |
H A D | Makefile | 97 SRCS+= bn_add.c bn_blind.c bn_const.c bn_conv.c bn_ctx.c bn_depr.c bn_dh.c
|