libtommath: Fix possible integer overflow CVE-2023-36328
[heimdal.git] / lib / hcrypto / libtommath / mtest / mpi-types.h
blobf99d7eeae168cf03b2f00932bd91d62d56ed3082
1 /* Type definitions generated by 'types.pl' */
2 typedef char mp_sign;
3 typedef unsigned short mp_digit; /* 2 byte type */
4 typedef unsigned int mp_word; /* 4 byte type */
5 typedef unsigned int mp_size;
6 typedef int mp_err;
8 #define MP_DIGIT_BIT (CHAR_BIT*sizeof(mp_digit))
9 #define MP_DIGIT_MAX USHRT_MAX
10 #define MP_WORD_BIT (CHAR_BIT*sizeof(mp_word))
11 #define MP_WORD_MAX UINT_MAX
13 #define MP_DIGIT_SIZE 2
14 #define DIGIT_FMT "%04X"
15 #define RADIX (MP_DIGIT_MAX+1)
18 /* $Source$ */
19 /* $Revision$ */
20 /* $Date$ */