Coverage Report

Created: 2025-07-11 06:12

/src/dropbear/libtommath/bn_mp_clear_multi.c
Line
Count
Source
1
#include "tommath_private.h"
2
#ifdef BN_MP_CLEAR_MULTI_C
3
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4
/* SPDX-License-Identifier: Unlicense */
5
6
#include <stdarg.h>
7
8
void mp_clear_multi(mp_int *mp, ...)
9
69.8k
{
10
69.8k
   mp_int *next_mp = mp;
11
69.8k
   va_list args;
12
69.8k
   va_start(args, mp);
13
357k
   while (next_mp != NULL) {
14
287k
      mp_clear(next_mp);
15
287k
      next_mp = va_arg(args, mp_int *);
16
287k
   }
17
69.8k
   va_end(args);
18
69.8k
}
19
#endif