repo.or.cz
/
heimdal.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libtommath: Fix possible integer overflow CVE-2023-36328
[heimdal.git]
/
lib
/
hcrypto
/
libtommath
/
bn_mp_mod_d.c
blob
0b6c12a9ef4bdc8203985c8684e934879c628221
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 */
5
6
mp_err
mp_mod_d
(
const
mp_int
*
a
,
mp_digit b
,
mp_digit
*
c
)
7
{
8
return
mp_div_d
(
a
,
b
,
NULL
,
c
);
9
}
10
#endif