![Logo](../../1_trinitycore.png) |
TrinityCore
|
Go to the documentation of this file. 1 #ifndef TOMCRYPT_CUSTOM_H_
2 #define TOMCRYPT_CUSTOM_H_
25 #define LTC_NO_PROTOTYPES
27 #define XMALLOC LibTomMalloc
31 #define LTC_NO_PROTOTYPES
33 #define XREALLOC LibTomRealloc
37 #define LTC_NO_PROTOTYPES
39 #define XCALLOC LibTomCalloc
43 #define LTC_NO_PROTOTYPES
45 #define XFREE LibTomFree
50 #define LTC_NO_PROTOTYPES
52 #define XMEMSET memset
56 #define LTC_NO_PROTOTYPES
58 #define XMEMCPY memcpy
62 #define LTC_NO_PROTOTYPES
64 #define XMEMCMP memcmp
68 #define LTC_NO_PROTOTYPES
70 #define XSTRCMP strcmp
74 #define XCLOCK LibTomClock
76 #ifndef XCLOCKS_PER_SEC
77 #define XCLOCKS_PER_SEC CLOCKS_PER_SEC
82 #define LTC_NO_PROTOTYPES
84 #define XQSORT LibTomQsort
89 #define LTC_NO_CIPHERS
100 #define LTC_NO_HASHES
115 #define LTC_DEVRANDOM
116 #define TRY_URANDOM_FIRST
147 #ifndef LTC_NO_CIPHERS
159 #ifndef LTC_NO_TABLES
160 #define LTC_TWOFISH_TABLES
163 #define LTC_TWOFISH_SMALL
174 #define LTC_ANUBIS_TWEAK
195 #ifndef LTC_NO_TABLES
208 #ifndef LTC_NO_HASHES
211 #define LTC_WHIRLPOOL
221 #define LTC_RIPEMD128
222 #define LTC_RIPEMD160
223 #define LTC_RIPEMD256
224 #define LTC_RIPEMD320
238 #if defined(LTC_PELICAN) && !defined(LTC_RIJNDAEL)
239 #error Pelican-MAC requires LTC_RIJNDAEL
245 #if defined(LTC_EAX_MODE) && !(defined(LTC_CTR_MODE) && defined(LTC_OMAC))
246 #error LTC_EAX_MODE requires CTR and LTC_OMAC mode
254 #ifndef LTC_NO_TABLES
255 #define LTC_GCM_TABLES
259 #ifdef LTC_GCM_TABLES
275 #define LTC_YARROW_AES 0
277 #if defined(LTC_YARROW) && !defined(LTC_CTR_MODE)
278 #error LTC_YARROW requires LTC_CTR_MODE chaining mode to be defined!
290 #define LTC_FORTUNA_WD 10
292 #define LTC_FORTUNA_POOLS 32
298 #define LTC_DEVRANDOM
300 #define TRY_URANDOM_FIRST
331 #define LTC_ECC_SHAMIR
333 #if defined(TFM_LTC_DESC) && defined(LTC_MECC)
334 #define LTC_MECC_ACCEL
360 #ifndef LTC_NO_CURVES
372 #if defined(LTC_MECC) || defined(LTC_MRSA) || defined(LTC_MDSA) || defined(MKATJA)
381 #if defined(LTC_DER) && !defined(MPI)
382 #error ASN.1 DER requires MPI functionality
385 #if (defined(LTC_MDSA) || defined(LTC_MRSA) || defined(LTC_MECC) || defined(MKATJA)) && !defined(LTC_DER)
386 #error PK requires ASN.1 DER functionality, make sure LTC_DER is enabled
394 #define LTC_MUTEX_GLOBAL(x) pthread_mutex_t x = PTHREAD_MUTEX_INITIALIZER;
395 #define LTC_MUTEX_PROTO(x) extern pthread_mutex_t x;
396 #define LTC_MUTEX_TYPE(x) pthread_mutex_t x;
397 #define LTC_MUTEX_INIT(x) pthread_mutex_init(x, NULL);
398 #define LTC_MUTEX_LOCK(x) pthread_mutex_lock(x);
399 #define LTC_MUTEX_UNLOCK(x) pthread_mutex_unlock(x);
404 #define LTC_MUTEX_GLOBAL(x)
405 #define LTC_MUTEX_PROTO(x)
406 #define LTC_MUTEX_TYPE(x)
407 #define LTC_MUTEX_INIT(x)
408 #define LTC_MUTEX_LOCK(x)
409 #define LTC_MUTEX_UNLOCK(x)