bn_mp_zero.c 287 B

12345678910111213
  1. #include "tommath_private.h"
  2. #ifdef BN_MP_ZERO_C
  3. /* LibTomMath, multiple-precision integer library -- Tom St Denis */
  4. /* SPDX-License-Identifier: Unlicense */
  5. /* set to zero */
  6. void mp_zero(mp_int *a)
  7. {
  8. a->sign = MP_ZPOS;
  9. a->used = 0;
  10. MP_ZERO_DIGITS(a->dp, a->alloc);
  11. }
  12. #endif