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.

36 lines
958 B

  1. // ===========================================================================
  2. // UAMEncrypt.h � 1998-2001 Microsoft Corp. All rights reserved.
  3. // ===========================================================================
  4. #pragma once
  5. #include "macssp.h"
  6. #define kOneWayEncryptedArgSize 16
  7. #define kServerChallengeMaxLen 8
  8. #define kServerChallengeExtCharMapTableSize 128
  9. #define kStartingExtendedCharValue 0x80
  10. #define kIllegalMappedExtChar 0xFF
  11. #define UAM_USERNAMELEN 32
  12. #define UAM_USERNAMELEN_V3 64
  13. #define UAM_CLRTXTPWDLEN 14
  14. #define UAM_ENCRYPTEDPWLEN 32
  15. //
  16. //Added for MS2.0/MS3.0 authentication.
  17. //
  18. #define UAM_MAX_LMv2_PASSWORD kMaxPwdLength
  19. Boolean
  20. UAM_GetEncryptedLmOwfPassword(
  21. char* inClearTextPassword,
  22. char* inServerChallenge,
  23. char* outEncryptedOwfPassword
  24. );
  25. Boolean
  26. UAM_GetDoubleEncryptedLmOwfPasswords(
  27. char* inClearTextPassword,
  28. char* inKey,
  29. char* outEncryptedOwfPasswords
  30. );