projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added SILC Server library.
[silc.git]
/
lib
/
silcmath
/
silcprimegen.c
diff --git
a/lib/silcmath/silcprimegen.c
b/lib/silcmath/silcprimegen.c
index 80bbf54eaea4a0124df4ddac6f1b3f1a56133dd8..ed9b8848aaa908c7f071776c930e0541d6ddceea 100644
(file)
--- 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$ */
/* Created: Mon Dec 8 16:35:37 GMT+0200 1997 */
/* $Id$ */
-#include "silc
includes
.h"
+#include "silc.h"
/*
Fixed primetable for small prime division. We use this primetable to
/*
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. */
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;
{
unsigned char *numbuf = NULL;
SilcUInt32 i, b, k;
SilcUInt32 *spmods;
SilcMPInt r, base, tmp, tmp2, oprime;
-
b
ool valid = FALSE;
+
SilcB
ool valid = FALSE;
silc_mp_init(&r);
silc_mp_init(&base);
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. */
/* Performs primality testings for given number. Returns TRUE if the
number is probably a prime. */
-
b
ool silc_math_prime_test(SilcMPInt *p)
+
SilcB
ool silc_math_prime_test(SilcMPInt *p)
{
SilcMPInt r, base, tmp;
int i, ret = 0;
{
SilcMPInt r, base, tmp;
int i, ret = 0;