1 #include "tommath_private.h"
3 /* LibTomMath, multiple-precision integer library -- Tom St Denis */
4 /* SPDX-License-Identifier: Unlicense */
6 /* creates "a" then copies b into it */
7 mp_err
mp_init_copy(mp_int
*a
, const mp_int
*b
)
11 if ((err
= mp_init_size(a
, b
->used
)) != MP_OKAY
) {
15 if ((err
= mp_copy(b
, a
)) != MP_OKAY
) {