opensslconf.h 3.0 KB

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