X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcmath%2Fsilcmath.h;h=6970b6528f636d6767cf7d74cbec0b7effe6f0b0;hb=4b4ddbb063b81dce8ed9a95f75922308f910d662;hp=ef2241bf82eeeedef9d441794cca8f07da2daa31;hpb=37797305825d95ce7de04a1db640f533413f600b;p=silc.git diff --git a/lib/silcmath/silcmath.h b/lib/silcmath/silcmath.h index ef2241bf..6970b652 100644 --- a/lib/silcmath/silcmath.h +++ b/lib/silcmath/silcmath.h @@ -1,24 +1,26 @@ +/* + + silcmath.h + + COPYRIGHT + + Author: Pekka Riikonen + + Copyright (C) 1997 - 2000 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; either version 2 of the License, or + (at your option) any later version. + + 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 + GNU General Public License for more details. + +*/ + /****h* silcmath/silcmath.h - * - * NAME - * - * silcmath.h - * - * COPYRIGHT - * - * Author: Pekka Riikonen - * - * Copyright (C) 1997 - 2000 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; either version 2 of the License, or - * (at your option) any later version. - * - * 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 - * GNU General Public License for more details. * * DESCRIPTION * @@ -26,7 +28,7 @@ * prime generation, and conversion routines. See the silcmp.h for the * SILC MP interface. * - */ + ***/ #ifndef SILCMATH_H #define SILCMATH_H @@ -35,7 +37,7 @@ * * SYNOPSIS * - * int silc_math_gen_prime(SilcMPInt *prime, uint32 bits, int verbose); + * int silc_math_gen_prime(SilcMPInt *prime, uint32 bits, bool verbose); * * DESCRIPTION * @@ -48,7 +50,7 @@ * 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); /****f* silcmath/SilcMathAPI/silc_math_prime_test * @@ -62,6 +64,6 @@ int silc_math_gen_prime(SilcMPInt *prime, uint32 bits, int verbose); * number is probably a prime. * ***/ -int silc_math_prime_test(SilcMPInt *p); +bool silc_math_prime_test(SilcMPInt *p); #endif