/freebsd-10.0-release/crypto/openssl/crypto/srp/ |
H A D | srp_lib.c | 156 BN_CTX *bn_ctx; local 161 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) 197 if (!BN_mod_exp(gb,g,b,N,bn_ctx) || 199 !BN_mod_mul(kv,v,k,N,bn_ctx) || 247 BN_CTX *bn_ctx; local 268 BN_CTX *bn_ctx; local 308 BN_CTX *bn_ctx; local [all...] |
H A D | srp_vfy.c | 615 BN_CTX *bn_ctx = BN_CTX_new(); local 624 (bn_ctx == NULL)) 642 if (!BN_mod_exp(*verifier,g,x,N,bn_ctx)) 655 BN_CTX_free(bn_ctx);
|
/freebsd-10.0-release/crypto/openssh/ |
H A D | jpake.c | 199 BN_CTX *bn_ctx; local 201 if ((bn_ctx = BN_CTX_new()) == NULL) 226 if (BN_mod_exp(*g_priv1, grp->g, *priv1, grp->p, bn_ctx) == -1) 228 if (BN_mod_exp(*g_priv2, grp->g, *priv2, grp->p, bn_ctx) == -1) 241 BN_CTX_free(bn_ctx); 255 BN_CTX *bn_ctx; local 275 if ((bn_ctx = BN_CTX_new()) == NULL) 287 if (BN_mod_mul(exponent, mypriv2, s, grp->q, bn_ctx) != 1) 295 if (BN_mod_mul(tmp, mypub1, theirpub1, grp->p, bn_ctx) != 1) 298 if (BN_mod_mul(tmp, tmp, theirpub2, grp->p, bn_ctx) ! 359 BN_CTX *bn_ctx; local [all...] |
H A D | schnorr.c | 134 BN_CTX *bn_ctx; local 150 if ((bn_ctx = BN_CTX_new()) == NULL) { 172 if (BN_mod_exp(g_v, grp_g, v, grp_p, bn_ctx) == -1) { 186 if (BN_mod_mul(tmp, x, h, grp_q, bn_ctx) == -1) { 190 if (BN_mod_sub(r, v, tmp, grp_q, bn_ctx) == -1) { 202 BN_CTX_free(bn_ctx); 266 BN_CTX *bn_ctx; local 281 if ((bn_ctx = BN_CTX_new()) == NULL) { 297 if (BN_mod_exp(gx_q, g_x, grp_q, grp_p, bn_ctx) == -1) { 315 if (BN_mod_exp(g_xh, g_x, h, grp_p, bn_ctx) 592 BN_CTX *bn_ctx; local [all...] |
/freebsd-10.0-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 \ 209 bn_ctx.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h 210 bn_ctx.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 211 bn_ctx.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 212 bn_ctx.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h 213 bn_ctx.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 214 bn_ctx.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 215 bn_ctx.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_ctx [all...] |
/freebsd-10.0-release/crypto/openssl/ssl/ |
H A D | d1_srvr.c | 1068 BN_CTX *bn_ctx = NULL; local 1266 bn_ctx = BN_CTX_new(); 1267 if ((encodedPoint == NULL) || (bn_ctx == NULL)) 1277 encodedPoint, encodedlen, bn_ctx); 1285 BN_CTX_free(bn_ctx); bn_ctx=NULL; 1492 BN_CTX_free(bn_ctx);
|
H A D | s3_clnt.c | 1274 BN_CTX *bn_ctx = NULL; local 1786 ((bn_ctx = BN_CTX_new()) == NULL)) 1797 p, encoded_pt_len, bn_ctx) == 0)) 1824 BN_CTX_free(bn_ctx); 1825 bn_ctx = NULL; 1984 BN_CTX_free(bn_ctx); 2358 BN_CTX * bn_ctx = NULL; local 2797 bn_ctx = BN_CTX_new(); 2799 (bn_ctx == NULL)) 2809 encodedPoint, encoded_pt_len, bn_ctx); [all...] |
H A D | s3_srvr.c | 1609 BN_CTX *bn_ctx = NULL; local 1806 bn_ctx = BN_CTX_new(); 1807 if ((encodedPoint == NULL) || (bn_ctx == NULL)) 1817 encodedPoint, encodedlen, bn_ctx); 1825 BN_CTX_free(bn_ctx); bn_ctx=NULL; 2059 BN_CTX_free(bn_ctx); 2189 BN_CTX *bn_ctx = NULL; local 2693 if ((bn_ctx = BN_CTX_new()) == NULL) 2710 clnt_ecpoint, p, i, bn_ctx) [all...] |
H A D | d1_clnt.c | 968 BN_CTX * bn_ctx = NULL; local 1402 bn_ctx = BN_CTX_new(); 1404 (bn_ctx == NULL)) 1414 encodedPoint, encoded_pt_len, bn_ctx); 1426 BN_CTX_free(bn_ctx); 1545 BN_CTX_free(bn_ctx);
|
/freebsd-10.0-release/crypto/openssl/apps/ |
H A D | s_client.c | 415 BN_CTX *bn_ctx = BN_CTX_new(); local 419 g != NULL && N != NULL && bn_ctx != NULL && BN_is_odd(N) && 420 BN_is_prime_ex(N, SRP_NUMBER_ITERATIONS_FOR_PRIME, bn_ctx, NULL) && 424 BN_is_prime_ex(p, SRP_NUMBER_ITERATIONS_FOR_PRIME, bn_ctx, NULL) && 428 BN_mod_exp(r, g, p, N, bn_ctx) && 436 if(bn_ctx) 437 BN_CTX_free(bn_ctx);
|
/freebsd-10.0-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 \
|