/* The current version is just a wrapper for LibTomMath library, so struct bignum is just typecast to mp_int. bignum_init - Allocate memory for bignum Returns: Pointer to allocated bignum or NULL on failure  */
struct bignum* bignum_init(void)
/* The current version is just a wrapper for LibTomMath library, so struct bignum is just typecast to mp_int. bignum_init - Allocate memory for bignum Returns: Pointer to allocated bignum or NULL on failure  */
struct bignum* bignum_init(void)
{
	struct bignum *n = (struct bignum *)os_zalloc(sizeof(mp_int));
	if (n == NULL)
		return NULL;
	if (mp_init((mp_int *) n) != MP_OKAY) {
		os_free(n);
		n = NULL;
	}
	return n;
}