* (c) 2000 Straylight/Edgeware
*/
-/*----- Licensing notice --------------------------------------------------*
+/*----- Licensing notice --------------------------------------------------*
*
* This file is part of Catacomb.
*
* it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
- *
+ *
* Catacomb is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Library General Public
* License along with Catacomb; if not, write to the Free
* Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
/* --- Find the inverse of %$a$% --- */
ainv = mp_modinv(MP_NEW, a, p);
-
+
/* --- Split %$p - 1$% into a power of two and an odd number --- */
t = mp_sub(MP_NEW, p, MP_ONE);
fputs("a = ", stderr); mp_writefile(a, stderr, 10); fputc('\n', stderr);
fputs("p = ", stderr); mp_writefile(p, stderr, 10); fputc('\n', stderr);
if (r) {
- fputs("r = ", stderr);
+ fputs("r = ", stderr);
mp_writefile(r, stderr, 10);
fputc('\n', stderr);
} else
- fputs("r = <undef>\n", stderr);
+ fputs("r = <undef>\n", stderr);
fputs("rr = ", stderr); mp_writefile(rr, stderr, 10); fputc('\n', stderr);
ok = 0;
}