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

/freebsd-11-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.c681 BN_CTX *bn_ctx = BN_CTX_new(); local
688 (verifier == NULL) || (N == NULL) || (g == NULL) || (bn_ctx == NULL))
709 if (!BN_mod_exp(*verifier, g, x, N, bn_ctx)) {
723 BN_CTX_free(bn_ctx);
/freebsd-11-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-11-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 \
223 bn_ctx.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h
224 bn_ctx.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
225 bn_ctx.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
226 bn_ctx.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
227 bn_ctx.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
228 bn_ctx.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
229 bn_ctx.o: ../../include/openssl/symhacks.h ../bn_int.h ../cryptlib.h bn_ctx
[all...]
/freebsd-11-stable/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-stable/crypto/openssl/ssl/
H A Ds3_srvr.c1623 BN_CTX *bn_ctx = NULL; local
1799 bn_ctx = BN_CTX_new();
1800 if ((encodedPoint == NULL) || (bn_ctx == NULL)) {
1809 encodedPoint, encodedlen, bn_ctx);
1816 BN_CTX_free(bn_ctx);
1817 bn_ctx = NULL;
2064 BN_CTX_free(bn_ctx);
2202 BN_CTX *bn_ctx = NULL; local
2744 if ((bn_ctx = BN_CTX_new()) == NULL) {
2758 if (EC_POINT_oct2point(group, clnt_ecpoint, p, i, bn_ctx)
[all...]
H A Ds3_clnt.c1394 BN_CTX *bn_ctx = NULL; local
1892 ((bn_ctx = BN_CTX_new()) == NULL)) {
1902 p, encoded_pt_len, bn_ctx) == 0)) {
1933 BN_CTX_free(bn_ctx);
1934 bn_ctx = NULL;
2073 BN_CTX_free(bn_ctx);
2519 BN_CTX *bn_ctx = NULL; local
2961 bn_ctx = BN_CTX_new();
2962 if ((encodedPoint == NULL) || (bn_ctx == NULL)) {
2972 encodedPoint, encoded_pt_len, bn_ctx);
[all...]
/freebsd-11-stable/secure/lib/libcrypto/
H A DMakefile91 SRCS+= bn_add.c bn_blind.c bn_const.c bn_ctx.c bn_depr.c bn_div.c bn_err.c \

Completed in 107 milliseconds