X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcmath%2Fsilcprimegen.c;h=4fb83231c3aab547fddf3a1b8e0c678b61ca4133;hb=c27a4ecc3e616e8a5ee09b8ca888ed6ff3e501f7;hp=80bbf54eaea4a0124df4ddac6f1b3f1a56133dd8;hpb=f60ca1494b58b5b2340e1780adf7422eacf5fed1;p=silc.git diff --git a/lib/silcmath/silcprimegen.c b/lib/silcmath/silcprimegen.c index 80bbf54e..4fb83231 100644 --- a/lib/silcmath/silcprimegen.c +++ b/lib/silcmath/silcprimegen.c @@ -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;