X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcmath%2Fsilcprimegen.c;h=ed9b8848aaa908c7f071776c930e0541d6ddceea;hb=40f8443d8d3a6577336ee66d18e04d9ac4d956bb;hp=80bbf54eaea4a0124df4ddac6f1b3f1a56133dd8;hpb=d1e71f42379e8b5cd0748a7aeae8561b02cfe53d;p=silc.git diff --git a/lib/silcmath/silcprimegen.c b/lib/silcmath/silcprimegen.c index 80bbf54e..ed9b8848 100644 --- a/lib/silcmath/silcprimegen.c +++ b/lib/silcmath/silcprimegen.c @@ -19,7 +19,7 @@ /* Created: Mon Dec 8 16:35:37 GMT+0200 1997 */ /* $Id$ */ -#include "silcincludes.h" +#include "silc.h" /* Fixed primetable for small prime division. We use this primetable to @@ -194,14 +194,14 @@ static SilcUInt32 primetable[] = If argument verbose is TRUE this will display some status information about the progress of generation. */ -bool silc_math_gen_prime(SilcMPInt *prime, SilcUInt32 bits, bool verbose, - SilcRng rng) +SilcBool silc_math_gen_prime(SilcMPInt *prime, SilcUInt32 bits, + SilcBool verbose, SilcRng rng) { unsigned char *numbuf = NULL; SilcUInt32 i, b, k; SilcUInt32 *spmods; SilcMPInt r, base, tmp, tmp2, oprime; - bool valid = FALSE; + SilcBool valid = FALSE; silc_mp_init(&r); silc_mp_init(&base); @@ -321,7 +321,7 @@ bool silc_math_gen_prime(SilcMPInt *prime, SilcUInt32 bits, bool verbose, /* Performs primality testings for given number. Returns TRUE if the number is probably a prime. */ -bool silc_math_prime_test(SilcMPInt *p) +SilcBool silc_math_prime_test(SilcMPInt *p) { SilcMPInt r, base, tmp; int i, ret = 0;