/freebsd-10.2-release/crypto/openssl/crypto/srp/ |
H A D | srp_lib.c | 157 BN_CTX *bn_ctx; local 162 if ((bn_ctx = BN_CTX_new()) == NULL || 168 if (!BN_mod_exp(tmp, v, u, N, bn_ctx)) 170 if (!BN_mod_mul(tmp, A, tmp, N, bn_ctx)) 172 if (!BN_mod_exp(S, tmp, b, N, bn_ctx)) 175 BN_CTX_free(bn_ctx); 184 BN_CTX *bn_ctx; local 187 (bn_ctx = BN_CTX_new()) == NULL) 196 if (!BN_mod_exp(gb, g, b, N, bn_ctx) || 198 !BN_mod_mul(kv, v, k, N, bn_ctx) || 243 BN_CTX *bn_ctx; local 262 BN_CTX *bn_ctx; local 301 BN_CTX *bn_ctx; local [all...] |
H A D | srp_vfy.c | 648 BN_CTX *bn_ctx = BN_CTX_new(); local 654 (verifier == NULL) || (N == NULL) || (g == NULL) || (bn_ctx == NULL)) 673 if (!BN_mod_exp(*verifier, g, x, N, bn_ctx)) { 685 BN_CTX_free(bn_ctx);
|
/freebsd-10.2-release/crypto/openssh/ |
H A D | schnorr.c | 135 BN_CTX *bn_ctx; local 151 if ((bn_ctx = BN_CTX_new()) == NULL) { 173 if (BN_mod_exp(g_v, grp_g, v, grp_p, bn_ctx) == -1) { 187 if (BN_mod_mul(tmp, x, h, grp_q, bn_ctx) == -1) { 191 if (BN_mod_sub(r, v, tmp, grp_q, bn_ctx) == -1) { 203 BN_CTX_free(bn_ctx); 267 BN_CTX *bn_ctx; local 282 if ((bn_ctx = BN_CTX_new()) == NULL) { 298 if (BN_mod_exp(gx_q, g_x, grp_q, grp_p, bn_ctx) == -1) { 316 if (BN_mod_exp(g_xh, g_x, h, grp_p, bn_ctx) 583 BN_CTX *bn_ctx; local [all...] |
/freebsd-10.2-release/crypto/openssl/crypto/bn/ |
H A D | Makefile | 25 LIBSRC= bn_add.c bn_div.c bn_exp.c bn_lib.c bn_ctx.c bn_mul.c bn_mod.c \ 31 LIBOBJ= bn_add.o bn_div.o bn_exp.o bn_lib.o bn_ctx.o bn_mul.o bn_mod.o \ 211 bn_ctx.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h 212 bn_ctx.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 213 bn_ctx.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 214 bn_ctx.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h 215 bn_ctx.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 216 bn_ctx.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 217 bn_ctx.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_ctx [all...] |
/freebsd-10.2-release/crypto/openssl/ssl/ |
H A D | d1_srvr.c | 1087 BN_CTX *bn_ctx = NULL; local 1274 bn_ctx = BN_CTX_new(); 1275 if ((encodedPoint == NULL) || (bn_ctx == NULL)) { 1284 encodedPoint, encodedlen, bn_ctx); 1291 BN_CTX_free(bn_ctx); 1292 bn_ctx = NULL; 1492 BN_CTX_free(bn_ctx);
|
H A D | s3_clnt.c | 1309 BN_CTX *bn_ctx = NULL; local 1761 ((bn_ctx = BN_CTX_new()) == NULL)) { 1771 p, encoded_pt_len, bn_ctx) == 0)) { 1802 BN_CTX_free(bn_ctx); 1803 bn_ctx = NULL; 1943 BN_CTX_free(bn_ctx); 2331 BN_CTX *bn_ctx = NULL; local 2755 bn_ctx = BN_CTX_new(); 2756 if ((encodedPoint == NULL) || (bn_ctx == NULL)) { 2766 encodedPoint, encoded_pt_len, bn_ctx); [all...] |
H A D | s3_srvr.c | 1649 BN_CTX *bn_ctx = NULL; local 1833 bn_ctx = BN_CTX_new(); 1834 if ((encodedPoint == NULL) || (bn_ctx == NULL)) { 1843 encodedPoint, encodedlen, bn_ctx); 1850 BN_CTX_free(bn_ctx); 1851 bn_ctx = NULL; 2070 BN_CTX_free(bn_ctx); 2197 BN_CTX *bn_ctx = NULL; local 2680 if ((bn_ctx = BN_CTX_new()) == NULL) { 2693 if (EC_POINT_oct2point(group, clnt_ecpoint, p, i, bn_ctx) [all...] |
H A D | d1_clnt.c | 980 BN_CTX *bn_ctx = NULL; local 1393 bn_ctx = BN_CTX_new(); 1394 if ((encodedPoint == NULL) || (bn_ctx == NULL)) { 1404 encodedPoint, encoded_pt_len, bn_ctx); 1416 BN_CTX_free(bn_ctx); 1532 BN_CTX_free(bn_ctx);
|
/freebsd-10.2-release/crypto/openssl/apps/ |
H A D | s_client.c | 469 BN_CTX *bn_ctx = BN_CTX_new(); local 473 g != NULL && N != NULL && bn_ctx != NULL && BN_is_odd(N) && 474 BN_is_prime_ex(N, SRP_NUMBER_ITERATIONS_FOR_PRIME, bn_ctx, NULL) && 477 BN_is_prime_ex(p, SRP_NUMBER_ITERATIONS_FOR_PRIME, bn_ctx, NULL) && 480 BN_mod_exp(r, g, p, N, bn_ctx) && 487 if (bn_ctx) 488 BN_CTX_free(bn_ctx);
|
/freebsd-10.2-release/secure/lib/libcrypto/ |
H A D | Makefile | 82 SRCS+= bn_add.c bn_blind.c bn_const.c bn_ctx.c bn_depr.c bn_div.c bn_err.c \
|