X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcmath%2Fsilcprimegen.c;h=bc5edf29a298052e1428bc6a9cb17305dee38f48;hb=4b4ddbb063b81dce8ed9a95f75922308f910d662;hp=e868637c66fbb99df9d0ced69a24b72564e4c5dd;hpb=37797305825d95ce7de04a1db640f533413f600b;p=silc.git diff --git a/lib/silcmath/silcprimegen.c b/lib/silcmath/silcprimegen.c index e868637c..bc5edf29 100644 --- a/lib/silcmath/silcprimegen.c +++ b/lib/silcmath/silcprimegen.c @@ -195,7 +195,7 @@ static uint32 primetable[] = If argument verbose is TRUE this will display some status information about the progress of generation. */ -int silc_math_gen_prime(SilcMPInt *prime, uint32 bits, int verbose) +bool silc_math_gen_prime(SilcMPInt *prime, uint32 bits, bool verbose) { unsigned char *numbuf; uint32 i, b, k; @@ -303,7 +303,7 @@ int silc_math_gen_prime(SilcMPInt *prime, uint32 bits, int verbose) /* Performs primality testings for given number. Returns TRUE if the number is probably a prime. */ -int silc_math_prime_test(SilcMPInt *p) +bool silc_math_prime_test(SilcMPInt *p) { SilcMPInt r, base, tmp; int i, ret = 0;