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

/freebsd-11.0-release/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.c678 BN_CTX *bn_ctx = BN_CTX_new(); local
685 (verifier == NULL) || (N == NULL) || (g == NULL) || (bn_ctx == NULL))
706 if (!BN_mod_exp(*verifier, g, x, N, bn_ctx)) {
720 BN_CTX_free(bn_ctx);
/freebsd-11.0-release/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-11.0-release/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 \
220 bn_ctx.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h
221 bn_ctx.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
222 bn_ctx.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
223 bn_ctx.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
224 bn_ctx.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
225 bn_ctx.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
226 bn_ctx.o: ../../include/openssl/symhacks.h ../cryptlib.h bn_ctx
[all...]
/freebsd-11.0-release/crypto/openssl/ssl/
H A Ds3_srvr.c1614 BN_CTX *bn_ctx = NULL; local
1794 bn_ctx = BN_CTX_new();
1795 if ((encodedPoint == NULL) || (bn_ctx == NULL)) {
1804 encodedPoint, encodedlen, bn_ctx);
1811 BN_CTX_free(bn_ctx);
1812 bn_ctx = NULL;
2058 BN_CTX_free(bn_ctx);
2181 BN_CTX *bn_ctx = NULL; local
2701 if ((bn_ctx = BN_CTX_new()) == NULL) {
2715 if (EC_POINT_oct2point(group, clnt_ecpoint, p, i, bn_ctx)
[all...]
H A Ds3_clnt.c1389 BN_CTX *bn_ctx = NULL; local
1886 ((bn_ctx = BN_CTX_new()) == NULL)) {
1896 p, encoded_pt_len, bn_ctx) == 0)) {
1927 BN_CTX_free(bn_ctx);
1928 bn_ctx = NULL;
2067 BN_CTX_free(bn_ctx);
2513 BN_CTX *bn_ctx = NULL; local
2955 bn_ctx = BN_CTX_new();
2956 if ((encodedPoint == NULL) || (bn_ctx == NULL)) {
2966 encodedPoint, encoded_pt_len, bn_ctx);
[all...]
/freebsd-11.0-release/crypto/openssl/apps/
H A Ds_client.c485 BN_CTX *bn_ctx = BN_CTX_new(); local
489 g != NULL && N != NULL && bn_ctx != NULL && BN_is_odd(N) &&
490 BN_is_prime_ex(N, SRP_NUMBER_ITERATIONS_FOR_PRIME, bn_ctx, NULL) &&
493 BN_is_prime_ex(p, SRP_NUMBER_ITERATIONS_FOR_PRIME, bn_ctx, NULL) &&
496 BN_mod_exp(r, g, p, N, bn_ctx) &&
503 if (bn_ctx)
504 BN_CTX_free(bn_ctx);
/freebsd-11.0-release/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 137 milliseconds