Lines Matching refs:GN
44 SRP_gN *GN = SRP_get_default_gN("1024");
46 if (GN == NULL) {
51 if (!SRP_create_verifier_BN(username, server_pass, &s, &v, GN->N, GN->g)) {
56 showbn("N", GN->N);
57 showbn("g", GN->g);
68 Bpub = SRP_Calc_B(b, GN->N, GN->g, v);
71 if (!SRP_Verify_B_mod_N(Bpub, GN->N)) {
83 Apub = SRP_Calc_A(a, GN->N, GN->g);
86 if (!SRP_Verify_A_mod_N(Apub, GN->N)) {
92 u = SRP_Calc_u(Apub, Bpub, GN->N);
96 Kclient = SRP_Calc_client_key(GN->N, Bpub, GN->g, x, a, u);
100 Kserver = SRP_Calc_server_key(Apub, v, u, b, GN->N);