hcrypto: import libtommath v1.2.0
This commit is contained in:
10
lib/hcrypto/libtommath/bn_mp_isodd.c
Normal file
10
lib/hcrypto/libtommath/bn_mp_isodd.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include "tommath_private.h"
|
||||
#ifdef BN_MP_ISODD_C
|
||||
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
|
||||
/* SPDX-License-Identifier: Unlicense */
|
||||
|
||||
mp_bool mp_isodd(const mp_int *a)
|
||||
{
|
||||
return MP_IS_ODD(a) ? MP_YES : MP_NO;
|
||||
}
|
||||
#endif
|
Reference in New Issue
Block a user