1 #include "tommath_private.h"
2 #ifdef MP_ERROR_TO_STRING_C
3 /* LibTomMath, multiple-precision integer library -- Tom St Denis */
4 /* SPDX-License-Identifier: Unlicense */
6 /* return a char * string for a given code */
7 const char *mp_error_to_string(mp_err code
)
13 return "Unknown error";
17 return "Value out of range";
19 return "Max. iterations reached";
21 return "Buffer overflow";
23 return "Integer overflow";
25 return "Invalid error code";