1ebfedea0SLionel Sambuc /* MacOS/opensslconf.h */ 2ebfedea0SLionel Sambuc 3ebfedea0SLionel Sambuc #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */ 4ebfedea0SLionel Sambuc # if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR) 5ebfedea0SLionel Sambuc # define OPENSSLDIR "/usr/local/ssl" 6ebfedea0SLionel Sambuc # endif 7ebfedea0SLionel Sambuc #endif 8ebfedea0SLionel Sambuc 9ebfedea0SLionel Sambuc #if defined(HEADER_IDEA_H) && !defined(IDEA_INT) 10ebfedea0SLionel Sambuc # define IDEA_INT unsigned int 11ebfedea0SLionel Sambuc #endif 12ebfedea0SLionel Sambuc 13ebfedea0SLionel Sambuc #if defined(HEADER_MD2_H) && !defined(MD2_INT) 14ebfedea0SLionel Sambuc # define MD2_INT unsigned int 15ebfedea0SLionel Sambuc #endif 16ebfedea0SLionel Sambuc 17ebfedea0SLionel Sambuc #if defined(HEADER_RC2_H) && !defined(RC2_INT) 18ebfedea0SLionel Sambuc /* I need to put in a mod for the alpha - eay */ 19ebfedea0SLionel Sambuc # define RC2_INT unsigned int 20ebfedea0SLionel Sambuc #endif 21ebfedea0SLionel Sambuc 22ebfedea0SLionel Sambuc #if defined(HEADER_RC4_H) 23ebfedea0SLionel Sambuc # if !defined(RC4_INT) 24ebfedea0SLionel Sambuc /* 25*0a6a1f1dSLionel Sambuc * using int types make the structure larger but make the code faster on most 26*0a6a1f1dSLionel Sambuc * boxes I have tested - up to %20 faster. 27*0a6a1f1dSLionel Sambuc */ 28*0a6a1f1dSLionel Sambuc /*- 29ebfedea0SLionel Sambuc * I don't know what does "most" mean, but declaring "int" is a must on: 30ebfedea0SLionel Sambuc * - Intel P6 because partial register stalls are very expensive; 31ebfedea0SLionel Sambuc * - elder Alpha because it lacks byte load/store instructions; 32ebfedea0SLionel Sambuc */ 33ebfedea0SLionel Sambuc # define RC4_INT unsigned char 34ebfedea0SLionel Sambuc # endif 35ebfedea0SLionel Sambuc # if !defined(RC4_CHUNK) 36ebfedea0SLionel Sambuc /* 37ebfedea0SLionel Sambuc * This enables code handling data aligned at natural CPU word 38ebfedea0SLionel Sambuc * boundary. See crypto/rc4/rc4_enc.c for further details. 39ebfedea0SLionel Sambuc */ 40ebfedea0SLionel Sambuc # define RC4_CHUNK unsigned long 41ebfedea0SLionel Sambuc # endif 42ebfedea0SLionel Sambuc #endif 43ebfedea0SLionel Sambuc 44ebfedea0SLionel Sambuc #if defined(HEADER_DES_H) && !defined(DES_LONG) 45*0a6a1f1dSLionel Sambuc /* 46*0a6a1f1dSLionel Sambuc * If this is set to 'unsigned int' on a DEC Alpha, this gives about a %20 47*0a6a1f1dSLionel Sambuc * speed up (longs are 8 bytes, int's are 4). 48*0a6a1f1dSLionel Sambuc */ 49ebfedea0SLionel Sambuc # ifndef DES_LONG 50ebfedea0SLionel Sambuc # define DES_LONG unsigned long 51ebfedea0SLionel Sambuc # endif 52ebfedea0SLionel Sambuc #endif 53ebfedea0SLionel Sambuc 54ebfedea0SLionel Sambuc #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H) 55ebfedea0SLionel Sambuc # define CONFIG_HEADER_BN_H 56ebfedea0SLionel Sambuc # if __option(longlong) 57ebfedea0SLionel Sambuc # define BN_LLONG 58ebfedea0SLionel Sambuc # else 59ebfedea0SLionel Sambuc # undef BN_LLONG 60ebfedea0SLionel Sambuc # endif 61ebfedea0SLionel Sambuc 62ebfedea0SLionel Sambuc /* Should we define BN_DIV2W here? */ 63ebfedea0SLionel Sambuc 64ebfedea0SLionel Sambuc /* Only one for the following should be defined */ 65*0a6a1f1dSLionel Sambuc /* 66*0a6a1f1dSLionel Sambuc * The prime number generation stuff may not work when EIGHT_BIT but I don't 67*0a6a1f1dSLionel Sambuc * care since I've only used this mode for debuging the bignum libraries 68*0a6a1f1dSLionel Sambuc */ 69ebfedea0SLionel Sambuc # undef SIXTY_FOUR_BIT_LONG 70ebfedea0SLionel Sambuc # undef SIXTY_FOUR_BIT 71ebfedea0SLionel Sambuc # define THIRTY_TWO_BIT 72ebfedea0SLionel Sambuc # undef SIXTEEN_BIT 73ebfedea0SLionel Sambuc # undef EIGHT_BIT 74ebfedea0SLionel Sambuc #endif 75ebfedea0SLionel Sambuc 76ebfedea0SLionel Sambuc #if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H) 77ebfedea0SLionel Sambuc # define CONFIG_HEADER_RC4_LOCL_H 78*0a6a1f1dSLionel Sambuc /* 79*0a6a1f1dSLionel Sambuc * if this is defined data[i] is used instead of *data, this is a %20 speedup 80*0a6a1f1dSLionel Sambuc * on x86 81*0a6a1f1dSLionel Sambuc */ 82ebfedea0SLionel Sambuc # undef RC4_INDEX 83ebfedea0SLionel Sambuc #endif 84ebfedea0SLionel Sambuc 85ebfedea0SLionel Sambuc #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H) 86ebfedea0SLionel Sambuc # define CONFIG_HEADER_BF_LOCL_H 87ebfedea0SLionel Sambuc # define BF_PTR 88ebfedea0SLionel Sambuc #endif /* HEADER_BF_LOCL_H */ 89ebfedea0SLionel Sambuc 90ebfedea0SLionel Sambuc #if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H) 91ebfedea0SLionel Sambuc # define CONFIG_HEADER_DES_LOCL_H 92*0a6a1f1dSLionel Sambuc /* 93*0a6a1f1dSLionel Sambuc * the following is tweaked from a config script, that is why it is a 94*0a6a1f1dSLionel Sambuc * protected undef/define 95*0a6a1f1dSLionel Sambuc */ 96ebfedea0SLionel Sambuc # ifndef DES_PTR 97ebfedea0SLionel Sambuc # define DES_PTR 98ebfedea0SLionel Sambuc # endif 99ebfedea0SLionel Sambuc 100*0a6a1f1dSLionel Sambuc /* 101*0a6a1f1dSLionel Sambuc * This helps C compiler generate the correct code for multiple functional 102ebfedea0SLionel Sambuc * units. It reduces register dependancies at the expense of 2 more 103*0a6a1f1dSLionel Sambuc * registers 104*0a6a1f1dSLionel Sambuc */ 105ebfedea0SLionel Sambuc # ifndef DES_RISC1 106ebfedea0SLionel Sambuc # define DES_RISC1 107ebfedea0SLionel Sambuc # endif 108ebfedea0SLionel Sambuc 109ebfedea0SLionel Sambuc # ifndef DES_RISC2 110ebfedea0SLionel Sambuc # undef DES_RISC2 111ebfedea0SLionel Sambuc # endif 112ebfedea0SLionel Sambuc 113ebfedea0SLionel Sambuc # if defined(DES_RISC1) && defined(DES_RISC2) 114ebfedea0SLionel Sambuc YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED ! !!!! 115ebfedea0SLionel Sambuc # endif 116*0a6a1f1dSLionel Sambuc /* 117*0a6a1f1dSLionel Sambuc * Unroll the inner loop, this sometimes helps, sometimes hinders. Very mucy 118*0a6a1f1dSLionel Sambuc * CPU dependant 119*0a6a1f1dSLionel Sambuc */ 120ebfedea0SLionel Sambuc # ifndef DES_UNROLL 121ebfedea0SLionel Sambuc # define DES_UNROLL 122ebfedea0SLionel Sambuc # endif 123ebfedea0SLionel Sambuc #endif /* HEADER_DES_LOCL_H */ 124ebfedea0SLionel Sambuc #ifndef __POWERPC__ 125ebfedea0SLionel Sambuc # define MD32_XARRAY 126ebfedea0SLionel Sambuc #endif 127