59 #ifndef OPENSSL_NO_SRP
66 #define bn_pack4(a1,a2,a3,a4) 0x##a1##a2##a3##a4##ul
69 #define bn_pack4(a1,a2,a3,a4) 0x##a3##a4##ul, 0x##a1##a2##ul
72 #define bn_pack4(a1,a2,a3,a4) 0x##a4##u,0x##a3##u,0x##a2##u,0x##a1##u
96 memset(tmp, 0, longN);
105 return BN_bin2bn(digest,
sizeof(digest), NULL);
117 if ((A == NULL) ||(B == NULL) || (N == NULL))
125 memset(cAB, 0, longN);
135 if (!(u =
BN_bin2bn(cu,
sizeof(cu), NULL)))
145 BIGNUM *tmp = NULL, *S = NULL;
148 if (u == NULL || A == NULL || v == NULL || b == NULL || N == NULL)
152 (tmp =
BN_new()) == NULL ||
172 BIGNUM *kv = NULL, *gb = NULL;
176 if (b == NULL || N == NULL || g == NULL || v == NULL ||
180 if ( (kv =
BN_new()) == NULL ||
181 (gb =
BN_new()) == NULL ||
188 !(k = srp_Calc_k(N,g)) ||
232 return BN_bin2bn(dig,
sizeof(dig), NULL);
240 if (a == NULL || N == NULL || g == NULL ||
244 if ((A =
BN_new()) != NULL &&
257 BIGNUM *tmp = NULL, *tmp2 = NULL, *tmp3 = NULL , *
k = NULL, *K = NULL;
260 if (u == NULL || B == NULL || N == NULL || g == NULL || x == NULL || a == NULL ||
264 if ((tmp =
BN_new()) == NULL ||
265 (tmp2 =
BN_new())== NULL ||
266 (tmp3 =
BN_new())== NULL ||
272 if (!(k = srp_Calc_k(N,g)))
301 if (B == NULL || N == NULL ||
305 if ((r =
BN_new()) == NULL)
330 if ((g == NULL) || (N == NULL))
338 if (
BN_cmp(knowngN[i].g, g) == 0 &&
BN_cmp(knowngN[i].N, N) == 0)
339 return knowngN[i].id;
352 if (strcmp(knowngN[i].
id,
id)==0)