X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcmath%2Fmpbin.c;h=9df0dbef46c2fb06c4a6f68f48d2e18f3beddb86;hb=d1e71f42379e8b5cd0748a7aeae8561b02cfe53d;hp=29d80f7711e71e007b2ddb8d20dde27fd766cd9d;hpb=34bb35a2496ec0402bb4d6c2546147cd37b27007;p=crypto.git diff --git a/lib/silcmath/mpbin.c b/lib/silcmath/mpbin.c index 29d80f77..9df0dbef 100644 --- a/lib/silcmath/mpbin.c +++ b/lib/silcmath/mpbin.c @@ -2,15 +2,14 @@ mpbin.c - Author: Pekka Riikonen + Author: Pekka Riikonen - Copyright (C) 2000 - 2001 Pekka Riikonen + Copyright (C) 2000 - 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; either version 2 of the License, or - (at your option) any later version. - + 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 @@ -35,7 +34,7 @@ unsigned char *silc_mp_mp2bin(SilcMPInt *val, SilcUInt32 len, size = (len ? len : ((silc_mp_sizeinbase(val, 2) + 7) / 8)); ret = silc_calloc(size, sizeof(*ret)); - + silc_mp_init(&tmp); silc_mp_set(&tmp, val);