LCOV - code coverage report
Current view: top level - third_party/heimdal/lib/hcrypto/libtommath - bn_mp_clear_multi.c (source / functions) Hit Total Coverage
Test: coverage report for master 70ed9daf Lines: 9 9 100.0 %
Date: 2024-01-11 09:59:51 Functions: 1 1 100.0 %

          Line data    Source code
       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        1027 : void mp_clear_multi(mp_int *mp, ...)
       9             : {
      10        1027 :    mp_int *next_mp = mp;
      11          40 :    va_list args;
      12        1027 :    va_start(args, mp);
      13        5225 :    while (next_mp != NULL) {
      14        4198 :       mp_clear(next_mp);
      15        4198 :       next_mp = va_arg(args, mp_int *);
      16             :    }
      17        1027 :    va_end(args);
      18        1027 : }
      19             : #endif

Generated by: LCOV version 1.14