LCOV - code coverage report
Current view: top level - third_party/heimdal/lib/hcrypto/libtommath - bn_mp_error_to_string.c (source / functions) Hit Total Coverage
Test: coverage report for master 2f515e9b Lines: 0 16 0.0 %
Date: 2024-04-21 15:09:00 Functions: 0 1 0.0 %

          Line data    Source code
       1             : #include "tommath_private.h"
       2             : #ifdef BN_MP_ERROR_TO_STRING_C
       3             : /* LibTomMath, multiple-precision integer library -- Tom St Denis */
       4             : /* SPDX-License-Identifier: Unlicense */
       5             : 
       6             : /* return a char * string for a given code */
       7           0 : const char *mp_error_to_string(mp_err code)
       8             : {
       9           0 :    switch (code) {
      10           0 :    case MP_OKAY:
      11           0 :       return "Successful";
      12           0 :    case MP_ERR:
      13           0 :       return "Unknown error";
      14           0 :    case MP_MEM:
      15           0 :       return "Out of heap";
      16           0 :    case MP_VAL:
      17           0 :       return "Value out of range";
      18           0 :    case MP_ITER:
      19           0 :       return "Max. iterations reached";
      20           0 :    case MP_BUF:
      21           0 :       return "Buffer overflow";
      22           0 :    default:
      23           0 :       return "Invalid error code";
      24             :    }
      25             : }
      26             : 
      27             : #endif

Generated by: LCOV version 1.14