bn_mp_clear_multi.c

Go to the documentation of this file.
00001 #include <tommath.h>
00002 #ifdef BN_MP_CLEAR_MULTI_C
00003 /* LibTomMath, multiple-precision integer library -- Tom St Denis
00004  *
00005  * LibTomMath is a library that provides multiple-precision
00006  * integer arithmetic as well as number theoretic functionality.
00007  *
00008  * The library was designed directly after the MPI library by
00009  * Michael Fromberger but has been written from scratch with
00010  * additional optimizations in place.
00011  *
00012  * The library is free for all purposes without any express
00013  * guarantee it works.
00014  *
00015  * Tom St Denis, tomstdenis@gmail.com, http://math.libtomcrypt.com
00016  */
00017 #include <stdarg.h>
00018 
00019 void mp_clear_multi(mp_int *mp, ...) 
00020 {
00021     mp_int* next_mp = mp;
00022     va_list args;
00023     va_start(args, mp);
00024     while (next_mp != NULL) {
00025         mp_clear(next_mp);
00026         next_mp = va_arg(args, mp_int*);
00027     }
00028     va_end(args);
00029 }
00030 #endif
00031 
00032 /* $Source: /cvsroot/tcl/libtommath/bn_mp_clear_multi.c,v $ */
00033 /* $Revision: 1.1.1.3 $ */
00034 /* $Date: 2006/12/01 00:08:11 $ */



Generated on Wed Mar 12 12:18:24 2008 by  doxygen 1.5.1