Artifact 982645d88e7de92cc2e17963c99cb55bb445b377e05086c9f05c13a11983dc1f:
- File libtommath/bn_mp_to_unsigned_bin_n.c — part of check-in [94cf70186e] at 2019-06-13 19:07:13 on branch libtommath — Update to latest libtommath's "develop" branch. On the way to 1.2.0 (user: jan.nijtmans, size: 488) [annotate] [blame] [check-ins using] [more...]
#include "tommath_private.h" #ifdef BN_MP_TO_UNSIGNED_BIN_N_C /* LibTomMath, multiple-precision integer library -- Tom St Denis */ /* SPDX-License-Identifier: Unlicense */ /* store in unsigned [big endian] format */ mp_err mp_to_unsigned_bin_n(const mp_int *a, unsigned char *b, unsigned long *outlen) { if (*outlen < (unsigned long)mp_unsigned_bin_size(a)) { return MP_VAL; } *outlen = (unsigned long)mp_unsigned_bin_size(a); return mp_to_unsigned_bin(a, b); } #endif