comparison gendss.c @ 48:aecba0e16e9c

Remove unused printbuf which prevented large DSS keys from being generated.
author Matt Johnston <matt@ucc.asn.au>
date Fri, 06 Aug 2004 16:37:59 +0000
parents fe6bca95afa7
children 2ca590852f45
comparison
equal deleted inserted replaced
47:4b53a43f0082 48:aecba0e16e9c
146 m_free(buf); 146 m_free(buf);
147 } 147 }
148 148
149 static void getg(dss_key * key) { 149 static void getg(dss_key * key) {
150 150
151 char printbuf[1000];
152 mp_int div, h, val; 151 mp_int div, h, val;
153 152
154 m_mp_init_multi(&div, &h, &val, NULL); 153 m_mp_init_multi(&div, &h, &val, NULL);
155 154
156 /* get div=(p-1)/q */ 155 /* get div=(p-1)/q */
177 exit(1); 176 exit(1);
178 } 177 }
179 178
180 } while (mp_cmp_d(key->g, 1) != MP_GT); 179 } while (mp_cmp_d(key->g, 1) != MP_GT);
181 180
182 mp_toradix(key->g, printbuf, 10);
183
184 mp_clear_multi(&div, &h, &val, NULL); 181 mp_clear_multi(&div, &h, &val, NULL);
185 } 182 }
186 183
187 static void getx(dss_key *key) { 184 static void getx(dss_key *key) {
188 185