X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcmath%2Fsilcmath.h;h=b5f28791a2f64452343cf773adff3aa6e16501fe;hb=a818c5b5411bbc4436d1c5f011236985c96bb787;hp=0c1141ee493d1c102cc402e0d90b8e4ee95afd4b;hpb=3d732816280b8d654fd6c42a8ff55d1e513dbba5;p=silc.git diff --git a/lib/silcmath/silcmath.h b/lib/silcmath/silcmath.h index 0c1141ee..b5f28791 100644 --- a/lib/silcmath/silcmath.h +++ b/lib/silcmath/silcmath.h @@ -1,24 +1,24 @@ -/****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. +/* + + silcmath.h + + Author: Pekka Riikonen + + Copyright (C) 1997 - 2001 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/SilcMathAPI * * DESCRIPTION * @@ -26,7 +26,7 @@ * prime generation, and conversion routines. See the silcmp.h for the * SILC MP interface. * - */ + ***/ #ifndef SILCMATH_H #define SILCMATH_H @@ -35,7 +35,7 @@ * * SYNOPSIS * - * int silc_math_gen_prime(SilcInt *prime, uint32 bits, int verbose); + * int silc_math_gen_prime(SilcMPInt *prime, SilcUInt32 bits, bool verbose); * * DESCRIPTION * @@ -48,13 +48,13 @@ * about the progress of generation. * ***/ -int silc_math_gen_prime(SilcInt *prime, uint32 bits, int verbose); +bool silc_math_gen_prime(SilcMPInt *prime, SilcUInt32 bits, bool verbose); /****f* silcmath/SilcMathAPI/silc_math_prime_test * * SYNOPSIS * - * int silc_math_prime_test(SilcInt *p); + * int silc_math_prime_test(SilcMPInt *p); * * DESCRIPTION * @@ -62,6 +62,6 @@ int silc_math_gen_prime(SilcInt *prime, uint32 bits, int verbose); * number is probably a prime. * ***/ -int silc_math_prime_test(SilcInt *p); +bool silc_math_prime_test(SilcMPInt *p); #endif