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 | 670 | { |
10 | 670 | mp_int *next_mp = mp; |
11 | 670 | va_list args; |
12 | 670 | va_start(args, mp); |
13 | 2.17k | while (next_mp != NULL) { |
14 | 1.50k | mp_clear(next_mp); |
15 | 1.50k | next_mp = va_arg(args, mp_int *); |
16 | 1.50k | } |
17 | va_end(args); | |
18 | 670 | } |
19 | #endif |