Lines Matching refs:N
38 BN_free(ctx->srp_ctx.N); in ssl_ctx_srp_ctx_free_intern()
66 BN_free(s->srp_ctx.N); in ssl_srp_ctx_free_intern()
113 if (((ctx->srp_ctx.N != NULL) && in ssl_srp_ctx_init_intern()
114 ((s->srp_ctx.N = BN_dup(ctx->srp_ctx.N)) == NULL)) || in ssl_srp_ctx_init_intern()
148 BN_free(s->srp_ctx.N); in ssl_srp_ctx_init_intern()
209 if ((s->srp_ctx.N == NULL) || in ssl_srp_server_param_with_username_intern()
223 SRP_Calc_B_ex(s->srp_ctx.b, s->srp_ctx.N, s->srp_ctx.g, in ssl_srp_server_param_with_username_intern()
254 sc->srp_ctx.N = BN_dup(GN->N); in SSL_set_srp_server_param_pw()
261 sc->srp_ctx.N, sc->srp_ctx.g, s->ctx->libctx, in SSL_set_srp_server_param_pw()
268 int SSL_set_srp_server_param(SSL *s, const BIGNUM *N, const BIGNUM *g, in SSL_set_srp_server_param() argument
276 if (N != NULL) { in SSL_set_srp_server_param()
277 if (sc->srp_ctx.N != NULL) { in SSL_set_srp_server_param()
278 if (!BN_copy(sc->srp_ctx.N, N)) { in SSL_set_srp_server_param()
279 BN_free(sc->srp_ctx.N); in SSL_set_srp_server_param()
280 sc->srp_ctx.N = NULL; in SSL_set_srp_server_param()
283 sc->srp_ctx.N = BN_dup(N); in SSL_set_srp_server_param()
319 if (!(sc->srp_ctx.N) || in SSL_set_srp_server_param()
333 if (!SRP_Verify_A_mod_N(s->srp_ctx.A, s->srp_ctx.N)) in srp_generate_server_master_secret()
335 if ((u = SRP_Calc_u_ex(s->srp_ctx.A, s->srp_ctx.B, s->srp_ctx.N, in srp_generate_server_master_secret()
339 s->srp_ctx.N)) == NULL) in srp_generate_server_master_secret()
368 if (SRP_Verify_B_mod_N(s->srp_ctx.B, s->srp_ctx.N) == 0 in srp_generate_client_master_secret()
369 || (u = SRP_Calc_u_ex(s->srp_ctx.A, s->srp_ctx.B, s->srp_ctx.N, in srp_generate_client_master_secret()
384 || (K = SRP_Calc_client_key_ex(s->srp_ctx.N, s->srp_ctx.B, in srp_generate_client_master_secret()
417 if (BN_ucmp(srp->g, srp->N) >= 0 || BN_ucmp(srp->B, srp->N) >= 0 in srp_verify_server_param()
423 if (BN_num_bits(srp->N) < srp->strength) { in srp_verify_server_param()
434 } else if (!SRP_check_known_gN_param(srp->g, srp->N)) { in srp_verify_server_param()
457 if (!(s->srp_ctx.A = SRP_Calc_A(s->srp_ctx.a, s->srp_ctx.N, s->srp_ctx.g))) in ssl_srp_calc_a_param_intern()
492 if (sc->srp_ctx.N != NULL) in SSL_get_srp_N()
493 return sc->srp_ctx.N; in SSL_get_srp_N()
494 return s->ctx->srp_ctx.N; in SSL_get_srp_N()