projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updates.
[silc.git]
/
lib
/
silcmath
/
silcprimegen.c
diff --git
a/lib/silcmath/silcprimegen.c
b/lib/silcmath/silcprimegen.c
index e868637c66fbb99df9d0ced69a24b72564e4c5dd..bc5edf29a298052e1428bc6a9cb17305dee38f48 100644
(file)
--- 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. */
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;
{
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. */
/* 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;
{
SilcMPInt r, base, tmp;
int i, ret = 0;