Source code of Windows XP (NT5)
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.

76 lines
1.5 KiB

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