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.

92 lines
1.4 KiB

  1. /****************************************************************************
  2. *
  3. *
  4. * FILENAME: crypto.h
  5. *
  6. * PRODUCT NAME: CRYPTOGRAPHIC TOOLKIT
  7. *
  8. * FILE STATUS:
  9. *
  10. * DESCRIPTION: Cryptographic Toolkit File
  11. * Common Definitions
  12. *
  13. *
  14. * PUBLIC FUNCTIONS:
  15. *
  16. *
  17. * REVISION HISTORY:
  18. *
  19. *
  20. * 10 Feb 96 AK Created
  21. *
  22. *
  23. * Created for Cylink Corporation by Secant
  24. *
  25. ****************************************************************************/
  26. #ifndef CRYPTO_H
  27. #define CRYPTO_H
  28. /* For C++ */
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32. /*************************************
  33. *
  34. * Module Defines
  35. *
  36. *************************************/
  37. #define FALSE 0
  38. #define TRUE 1
  39. #define SUCCESS 0
  40. /*-- ANSI-recommended NULL Pointer definition --*/
  41. #ifndef NULL
  42. #define NULL (void *) 0
  43. #endif
  44. /*************************************
  45. *
  46. * Error Definitions
  47. *
  48. *************************************/
  49. #define ERR_ALLOC -1
  50. /*************************************
  51. *
  52. * Type Definitions
  53. *
  54. *************************************/
  55. typedef unsigned char uchar;
  56. typedef unsigned short ushort;
  57. typedef unsigned long ulong;
  58. typedef unsigned char BYTE;
  59. typedef unsigned short USHORT;
  60. typedef unsigned int UINT;
  61. typedef unsigned long ULONG;
  62. typedef int BOOL;
  63. #ifdef ORD_16
  64. typedef unsigned short ord;
  65. typedef unsigned long dord;
  66. #endif
  67. #ifdef ORD_32
  68. typedef unsigned long ord;
  69. typedef unsigned long dord;
  70. #endif
  71. #ifdef __cplusplus
  72. }
  73. #endif
  74. #endif /* CRYPTO_H */