X-Git-Url: http://git.silcnet.org/gitweb/?p=crypto.git;a=blobdiff_plain;f=lib%2Fsilcmath%2Fmodinv.c;fp=lib%2Fsilcmath%2Fmodinv.c;h=e423a7acf4d451a8aad3227e001af513432e0406;hp=3d3b768fb094aec0647d9b8cdb27c6647eba9f0d;hb=abd261065eac46a2d2c970833f3fa701bc1516e3;hpb=63da89e60c01aa62254648b3aafc88261181da65 diff --git a/lib/silcmath/modinv.c b/lib/silcmath/modinv.c index 3d3b768f..e423a7ac 100644 --- a/lib/silcmath/modinv.c +++ b/lib/silcmath/modinv.c @@ -4,7 +4,7 @@ Author: Pekka Riikonen - Copyright (C) 1997 - 2005 Pekka Riikonen + Copyright (C) 1997 - 2008 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 @@ -45,7 +45,7 @@ typedef struct { not needed by the algorithm so it does not have to be included.) */ -void silc_mp_modinv(SilcMPInt *inv, SilcMPInt *a, SilcMPInt *n) +SilcBool silc_mp_modinv(SilcMPInt *inv, SilcMPInt *a, SilcMPInt *n) { int i; SilcMPInt y; @@ -96,4 +96,5 @@ void silc_mp_modinv(SilcMPInt *inv, SilcMPInt *a, SilcMPInt *n) silc_mp_uninit(&v[0].x); silc_mp_uninit(&v[1].x); silc_mp_uninit(&v[2].x); + return TRUE; }