/* for phatsig use, copy this file over the existing file in the libtomcrypt/src/headers directory -bushing */ #ifndef TOMCRYPT_CUSTOM_H_ #define TOMCRYPT_CUSTOM_H_ /* macros for various libc functions you can change for embedded targets */ #define XMALLOC malloc #define XREALLOC realloc #define XCALLOC calloc #define XFREE free #define XMEMSET memset #define XMEMCPY memcpy #define XCLOCK clock #define XCLOCKS_PER_SEC CLOCKS_PER_SEC /* Use small code where possible */ #define LTC_SMALL_CODE #define LTC_NO_FILE #define LTC_NO_ASM /* disable FAST mode */ /* #define LTC_NO_FAST */ /* disable BSWAP on x86 */ /* #define LTC_NO_BSWAP */ /* ---> Symmetric Block Ciphers <--- */ #ifndef LTC_NO_CIPHERS #define MD5 /* Greg's SOBER128 PRNG ;-0 */ #define SPRNG #define HMAC #define LTM_DESC #define MRSA /* Include the MPI functionality? (required by the PK algorithms) */ #define MPI #endif /* LTC_NO_PK */ /* PKCS #1 (RSA) and #5 (Password Handling) stuff */ #ifndef LTC_NO_PKCS #define PKCS_1 #define PKCS_5 /* Include ASN.1 DER (required by DSA/RSA) */ #define LTC_DER #if defined(LTC_DER) && !defined(MPI) #error ASN.1 DER requires MPI functionality #endif #if (defined(MDSA) || defined(MRSA)) && !defined(LTC_DER) #error RSA/DSA requires ASN.1 DER functionality, make sure LTC_DER is enabled #endif #endif /* LTC_NO_PKCS */ #endif /* default no functions */ #define LTC_MUTEX_GLOBAL(x) #define LTC_MUTEX_PROTO(x) #define LTC_MUTEX_LOCK(x) #define LTC_MUTEX_UNLOCK(x) /* $Source: /cvs/libtom/libtomcrypt/src/headers/tomcrypt_custom.h,v $ */ /* $Revision: 1.26 $ */ /* $Date: 2005/07/31 23:08:16 $ */