comparison src/headers/tomcrypt_custom.h @ 383:2c89a3a04104 libtomcrypt-dropbear

Fix up some slight changes. Hack out the RSA code in tomcrypt_math.h fairly crudely, as LTC's rsa_key collide's with Dropbear's rsa_key
author Matt Johnston <matt@ucc.asn.au>
date Thu, 11 Jan 2007 03:04:55 +0000
parents 999a5eb4ed10
children d8e44bef7917
comparison
equal deleted inserted replaced
381:999a5eb4ed10 383:2c89a3a04104
109 #endif 109 #endif
110 110
111 #ifdef DROPBEAR_3DES_CBC 111 #ifdef DROPBEAR_3DES_CBC
112 #define DES 112 #define DES
113 #endif 113 #endif
114 #define CBC 114
115 #define LTC_CBC_MODE
115 116
116 #if defined(DROPBEAR_DSS) && defined(DSS_PROTOK) 117 #if defined(DROPBEAR_DSS) && defined(DSS_PROTOK)
117 #define SHA512 118 #define SHA512
118 #endif 119 #endif
119 120
121 122
122 #ifdef DROPBEAR_MD5_HMAC 123 #ifdef DROPBEAR_MD5_HMAC
123 #define MD5 124 #define MD5
124 #endif 125 #endif
125 126
126 #define HMAC 127 #define LTC_HMAC
127 128
128 /* Various tidbits of modern neatoness */ 129 /* Various tidbits of modern neatoness */
129 #define BASE64 130 #define BASE64
130 131
131 /* default no functions */ 132 /* default no pthread functions */
132 #define LTC_MUTEX_GLOBAL(x) 133 #define LTC_MUTEX_GLOBAL(x)
133 #define LTC_MUTEX_PROTO(x) 134 #define LTC_MUTEX_PROTO(x)
134 #define LTC_MUTEX_TYPE(x) 135 #define LTC_MUTEX_TYPE(x)
135 #define LTC_MUTEX_INIT(x) 136 #define LTC_MUTEX_INIT(x)
136 #define LTC_MUTEX_LOCK(x) 137 #define LTC_MUTEX_LOCK(x)
137 #define LTC_MUTEX_UNLOCK(x) 138 #define LTC_MUTEX_UNLOCK(x)
138 #define FORTUNA_POOLS 0 139 #define FORTUNA_POOLS 0
139
140 #endif
141 140
142 /* Debuggers */ 141 /* Debuggers */
143 142
144 /* define this if you use Valgrind, note: it CHANGES the way SOBER-128 and RC4 work (see the code) */ 143 /* define this if you use Valgrind, note: it CHANGES the way SOBER-128 and RC4 work (see the code) */
145 /* #define LTC_VALGRIND */ 144 /* #define LTC_VALGRIND */