X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcmath%2Fsilcmath.h;h=08a08c0c00d149e67a88b1c5bc652c7e9b601207;hb=e9374395ec9747bddd3ea0bfd3e5a17717e97b31;hp=e1bb9945aaaa5e5334653f470258727204d14a0a;hpb=d1e71f42379e8b5cd0748a7aeae8561b02cfe53d;p=silc.git diff --git a/lib/silcmath/silcmath.h b/lib/silcmath/silcmath.h index e1bb9945..08a08c0c 100644 --- a/lib/silcmath/silcmath.h +++ b/lib/silcmath/silcmath.h @@ -1,15 +1,15 @@ /* silcmath.h - + Author: Pekka Riikonen - - Copyright (C) 1997 - 2001 Pekka Riikonen - + + Copyright (C) 1997 - 2005 Pekka Riikonen + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @@ -36,15 +36,15 @@ * * SYNOPSIS * - * int silc_math_gen_prime(SilcMPInt *prime, SilcUInt32 bits, bool verbose, - * SilcRng); + * SilcBool silc_math_gen_prime(SilcMPInt *prime, SilcUInt32 bits, + * SilcBool verbose, SilcRng rng); * * DESCRIPTION * - * Find appropriate prime. It generates a number by taking random bytes. - * It then tests the number that it's not divisible by any of the small - * primes and then it performs Fermat's prime test. I thank Rieks Joosten - * (r.joosten@pijnenburg.nl) for such a good help with prime tests. + * Find appropriate prime. It generates a number by taking random bytes. + * It then tests the number that it's not divisible by any of the small + * primes and then it performs Fermat's prime test. I thank Rieks Joosten + * (r.joosten@pijnenburg.nl) for such a good help with prime tests. * * If argument verbose is TRUE this will display some status information * about the progress of generation. If the `rng' is NULL then global @@ -52,8 +52,8 @@ * number number. * ***/ -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); /****f* silcmath/SilcMathAPI/silc_math_prime_test * @@ -63,10 +63,10 @@ bool silc_math_gen_prime(SilcMPInt *prime, SilcUInt32 bits, bool verbose, * * DESCRIPTION * - * Performs primality testings for given number. Returns TRUE if the + * 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); #endif