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.

43 lines
1.0 KiB

  1. #include <ntlmsspi.h>
  2. #define ENCRYPT 0
  3. #define DECRYPT 1
  4. #ifndef DECR_KEY
  5. #define DECR_KEY 0
  6. #define ENCR_KEY 1
  7. #define ENCR_STD 2
  8. #define ENCR_SES 4
  9. #endif
  10. #define CRYPT_ERR 1
  11. #define CRYPT_OK 0
  12. unsigned FAR _cdecl
  13. DES_CBC( unsigned Option,
  14. const char FAR * Key,
  15. unsigned char FAR * IV,
  16. unsigned char FAR * Source,
  17. unsigned char FAR * Dest,
  18. unsigned Size);
  19. unsigned FAR _cdecl
  20. DES_CBC_LM( unsigned Option,
  21. const char FAR * Key,
  22. unsigned char FAR * IV,
  23. unsigned char FAR * Source,
  24. unsigned char FAR * Dest,
  25. unsigned Size);
  26. unsigned FAR _cdecl
  27. DES_ECB( unsigned Option,
  28. const char FAR * Key,
  29. unsigned char FAR * Src,
  30. unsigned char FAR * Dst);
  31. unsigned FAR _cdecl
  32. DES_ECB_LM( unsigned Option,
  33. const char FAR * Key,
  34. unsigned char FAR * Src,
  35. unsigned char FAR * Dst);