Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
1.7 KiB

  1. /* csp.h */
  2. #ifndef __DSSINC__CSP__H
  3. #define __DSSINC__CSP__H
  4. #include <nt.h>
  5. #include <ntrtl.h>
  6. #include <nturtl.h>
  7. #include <windows.h>
  8. #include <windef.h>
  9. #include <wtypes.h>
  10. #include <wincrypt.h>
  11. #include <cspdk.h>
  12. #include <winerror.h>
  13. #include <crypto.h>
  14. #include <mem.h>
  15. #include <contman.h>
  16. #include <policy.h>
  17. #include <fxupbn.h>
  18. #include <delayimp.h>
  19. #include <pstore.h>
  20. #ifdef _WIN64
  21. #define ALIGNMENT_BOUNDARY 7
  22. #else
  23. #define ALIGNMENT_BOUNDARY 3
  24. #endif
  25. #ifdef _DEBUG
  26. #include <crtdbg.h>
  27. // #define BreakPoint
  28. #define BreakPoint _CrtDbgBreak();
  29. #define EntryPoint
  30. // #define EntryPoint BreakPoint
  31. #ifndef ASSERT
  32. #define ASSERT _ASSERTE
  33. #endif
  34. #else // _DEBUG
  35. #define BreakPoint
  36. #define EntryPoint
  37. #ifndef ASSERT
  38. #define ASSERT
  39. #endif
  40. #endif // _DEBUG
  41. // Specify which algorithms are supported
  42. #define CSP_USE_SHA1
  43. #define CSP_USE_MD5
  44. #define CSP_USE_RC4
  45. #define CSP_USE_RC2
  46. #define CSP_USE_MAC
  47. #define CSP_USE_DES40
  48. #define CSP_USE_DES
  49. #define CSP_USE_3DES
  50. #define CSP_USE_SSL3
  51. // Special definitions
  52. #define RC_MAXSALTSIZE 256
  53. #define RC2_DEFEFFSIZE 40
  54. #define RC2_MINEFFSIZE 40
  55. #define RC2_BLOCKLEN 8
  56. #define RC_DEFSALTSIZE 11
  57. #define RC2_WEAK_MAXEFFSIZE 56
  58. #define RC2_STRONG_MAXEFFSIZE 128
  59. /*********************************/
  60. /* Definitions */
  61. /*********************************/
  62. /*********************************/
  63. /* Structure Definitions */
  64. /*********************************/
  65. #define CALG_DES40 CALG_CYLINK_MEK
  66. typedef struct _dhSharedNumber
  67. {
  68. BYTE *shared;
  69. DWORD len;
  70. } dhSharedNumber;
  71. #endif