Searched refs:bn_ctx (Results 1 - 10 of 10) sorted by relevance

/freebsd-10-stable/crypto/openssl/crypto/srp/
H A Dsrp_lib.c157 BN_CTX *bn_ctx; local
162 if ((bn_ctx = BN_CTX_new()) == NULL || (tmp = BN_new()) == NULL)
167 if (!BN_mod_exp(tmp, v, u, N, bn_ctx))
169 if (!BN_mod_mul(tmp, A, tmp, N, bn_ctx))
173 if (S != NULL && !BN_mod_exp(S, tmp, b, N, bn_ctx)) {
178 BN_CTX_free(bn_ctx);
187 BN_CTX *bn_ctx; local
190 (bn_ctx = BN_CTX_new()) == NULL)
199 if (!BN_mod_exp(gb, g, b, N, bn_ctx) ||
201 !BN_mod_mul(kv, v, k, N, bn_ctx) ||
246 BN_CTX *bn_ctx; local
265 BN_CTX *bn_ctx; local
307 BN_CTX *bn_ctx; local
[all...]
H A Dsrp_vfy.c659 BN_CTX *bn_ctx = BN_CTX_new(); local
666 (verifier == NULL) || (N == NULL) || (g == NULL) || (bn_ctx == NULL))
687 if (!BN_mod_exp(*verifier, g, x, N, bn_ctx)) {
701 BN_CTX_free(bn_ctx);
/freebsd-10-stable/crypto/openssh/
H A Dsshbuf-getput-crypto.c195 BN_CTX *bn_ctx; local
199 if ((bn_ctx = BN_CTX_new()) == NULL)
202 NULL, 0, bn_ctx)) > SSHBUF_MAX_ECPOINT) {
203 BN_CTX_free(bn_ctx);
207 d, len, bn_ctx) != len) {
208 BN_CTX_free(bn_ctx);
211 BN_CTX_free(bn_ctx);
/freebsd-10-stable/crypto/openssl/crypto/bn/
H A DMakefile25 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-stable/crypto/openssl/ssl/
H A Dd1_srvr.c1108 BN_CTX *bn_ctx = NULL; local
1295 bn_ctx = BN_CTX_new();
1296 if ((encodedPoint == NULL) || (bn_ctx == NULL)) {
1305 encodedPoint, encodedlen, bn_ctx);
1312 BN_CTX_free(bn_ctx);
1313 bn_ctx = NULL;
1513 BN_CTX_free(bn_ctx);
H A Ds3_srvr.c1652 BN_CTX *bn_ctx = NULL; local
1825 bn_ctx = BN_CTX_new();
1826 if ((encodedPoint == NULL) || (bn_ctx == NULL)) {
1835 encodedPoint, encodedlen, bn_ctx);
1842 BN_CTX_free(bn_ctx);
1843 bn_ctx = NULL;
2071 BN_CTX_free(bn_ctx);
2198 BN_CTX *bn_ctx = NULL; local
2678 if ((bn_ctx = BN_CTX_new()) == NULL) {
2691 if (EC_POINT_oct2point(group, clnt_ecpoint, p, i, bn_ctx)
[all...]
H A Dd1_clnt.c991 BN_CTX *bn_ctx = NULL; local
1404 bn_ctx = BN_CTX_new();
1405 if ((encodedPoint == NULL) || (bn_ctx == NULL)) {
1415 encodedPoint, encoded_pt_len, bn_ctx);
1427 BN_CTX_free(bn_ctx);
1543 BN_CTX_free(bn_ctx);
H A Ds3_clnt.c1309 BN_CTX *bn_ctx = NULL; local
1777 ((bn_ctx = BN_CTX_new()) == NULL)) {
1787 p, encoded_pt_len, bn_ctx) == 0)) {
1818 BN_CTX_free(bn_ctx);
1819 bn_ctx = NULL;
1969 BN_CTX_free(bn_ctx);
2373 BN_CTX *bn_ctx = NULL; local
2798 bn_ctx = BN_CTX_new();
2799 if ((encodedPoint == NULL) || (bn_ctx == NULL)) {
2809 encodedPoint, encoded_pt_len, bn_ctx);
[all...]
/freebsd-10-stable/crypto/openssl/apps/
H A Ds_client.c469 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-stable/secure/lib/libcrypto/
H A DMakefile81 SRCS+= bn_add.c bn_blind.c bn_const.c bn_ctx.c bn_depr.c bn_div.c bn_err.c \

Completed in 213 milliseconds