Lines Matching refs:g
55 static BIGNUM *srp_Calc_k(const BIGNUM *N, const BIGNUM *g, in srp_Calc_k() argument
60 return srp_Calc_xy(N, g, N, libctx, propq); in srp_Calc_k()
106 BIGNUM *SRP_Calc_B_ex(const BIGNUM *b, const BIGNUM *N, const BIGNUM *g, in SRP_Calc_B_ex() argument
113 if (b == NULL || N == NULL || g == NULL || v == NULL || in SRP_Calc_B_ex()
123 if (!BN_mod_exp(gb, g, b, N, bn_ctx) in SRP_Calc_B_ex()
124 || (k = srp_Calc_k(N, g, libctx, propq)) == NULL in SRP_Calc_B_ex()
138 BIGNUM *SRP_Calc_B(const BIGNUM *b, const BIGNUM *N, const BIGNUM *g, in SRP_Calc_B() argument
141 return SRP_Calc_B_ex(b, N, g, v, NULL, NULL); in SRP_Calc_B()
196 BIGNUM *SRP_Calc_A(const BIGNUM *a, const BIGNUM *N, const BIGNUM *g) in SRP_Calc_A() argument
201 if (a == NULL || N == NULL || g == NULL || (bn_ctx = BN_CTX_new()) == NULL) in SRP_Calc_A()
204 if ((A = BN_new()) != NULL && !BN_mod_exp(A, g, a, N, bn_ctx)) { in SRP_Calc_A()
212 BIGNUM *SRP_Calc_client_key_ex(const BIGNUM *N, const BIGNUM *B, const BIGNUM *g, in SRP_Calc_client_key_ex() argument
220 if (u == NULL || B == NULL || N == NULL || g == NULL || x == NULL in SRP_Calc_client_key_ex()
232 if (!BN_mod_exp(tmp, g, xtmp, N, bn_ctx)) in SRP_Calc_client_key_ex()
234 if ((k = srp_Calc_k(N, g, libctx, propq)) == NULL) in SRP_Calc_client_key_ex()
260 BIGNUM *SRP_Calc_client_key(const BIGNUM *N, const BIGNUM *B, const BIGNUM *g, in SRP_Calc_client_key() argument
263 return SRP_Calc_client_key_ex(N, B, g, x, a, u, NULL, NULL); in SRP_Calc_client_key()
309 char *SRP_check_known_gN_param(const BIGNUM *g, const BIGNUM *N) in SRP_check_known_gN_param() argument
312 if ((g == NULL) || (N == NULL)) in SRP_check_known_gN_param()
316 if (BN_cmp(knowngN[i].g, g) == 0 && BN_cmp(knowngN[i].N, N) == 0) in SRP_check_known_gN_param()