libtommath: Fix possible integer overflow CVE-2023-36328
[heimdal.git] / lib / hcrypto / libtommath / bn_mp_mod_d.c
blob0b6c12a9ef4bdc8203985c8684e934879c628221
1 #include "tommath_private.h"
2 #ifdef BN_MP_MOD_D_C
3 /* LibTomMath, multiple-precision integer library -- Tom St Denis */
4 /* SPDX-License-Identifier: Unlicense */
6 mp_err mp_mod_d(const mp_int *a, mp_digit b, mp_digit *c)
8 return mp_div_d(a, b, NULL, c);
10 #endif