comparison libtommath/tommath_class.h @ 1571:d4efb7801fcd

Attempt to fix m_free for libtomcrypt/libtommath
author Matt Johnston <matt@ucc.asn.au>
date Fri, 02 Mar 2018 00:02:06 +0800
parents 5916af64acd4
children f52919ffd3b1
comparison
equal deleted inserted replaced
1570:67cb1983500b 1571:d4efb7801fcd
1060 #undef BN_MP_KARATSUBA_MUL_C 1060 #undef BN_MP_KARATSUBA_MUL_C
1061 #undef BN_MP_KARATSUBA_SQR_C 1061 #undef BN_MP_KARATSUBA_SQR_C
1062 #undef BN_MP_TOOM_MUL_C 1062 #undef BN_MP_TOOM_MUL_C
1063 #undef BN_MP_TOOM_SQR_C 1063 #undef BN_MP_TOOM_SQR_C
1064 1064
1065 void * m_malloc(size_t size); 1065 #include "dbmalloc.h"
1066 /* m_calloc is limited in size, enough for libtomcrypt */
1067 void * m_calloc(size_t nmemb, size_t size);
1068 void * m_realloc(void* ptr, size_t size);
1069 void m_free_direct(void* ptr);
1070
1071 #define XMALLOC m_malloc 1066 #define XMALLOC m_malloc
1072 #define XFREE m_free_direct 1067 #define XFREE m_free_direct
1073 #define XREALLOC m_realloc 1068 #define XREALLOC m_realloc
1074 #define XCALLOC m_calloc 1069 #define XCALLOC m_calloc
1075 1070