amplify-swift/AmplifyPlugins/Auth/Sources/libtommath/amplify_bn_mp_zero.c

15 lines
422 B
C

#include "amplify_tommath_private.h"
#ifdef AMPLIFY_BN_MP_ZERO_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
/* SPDX-License-Identifier: Unlicense */
/* Modifications Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. */
/* set to zero */
void amplify_mp_zero(amplify_mp_int *a)
{
a->sign = AMPLIFY_MP_ZPOS;
a->used = 0;
AMPLIFY_MP_ZERO_DIGITS(a->dp, a->alloc);
}
#endif