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.

54 lines
1.4 KiB

  1. BOOL FMyPrimitiveCryptHMAC(
  2. PBYTE pbKeyMaterial,
  3. DWORD cbKeyMaterial,
  4. PBYTE pbData,
  5. DWORD cbData,
  6. HCRYPTPROV hVerifyProv,
  7. DWORD dwHashAlg,
  8. HCRYPTHASH* phHash); // out
  9. #if DBG
  10. void CheckMACInterop(
  11. PBYTE pbMonsterPwdBuf,
  12. DWORD cbMonsterPwdBuf,
  13. PBYTE pbKeySalt,
  14. DWORD cbKeySalt,
  15. HCRYPTPROV hVerifyProv,
  16. ALG_ID algDerivationHash);
  17. #endif
  18. // USEC -- (US Export Controls)
  19. DWORD GetSaltForExportControl(
  20. HCRYPTPROV hProv,
  21. HCRYPTKEY hKey,
  22. PBYTE* ppbSalt,
  23. DWORD* pcbSalt);
  24. DWORD SetSaltForExportControl(
  25. HCRYPTKEY hKey,
  26. PBYTE pbSalt,
  27. DWORD cbSalt);
  28. HCRYPTPROV
  29. GetCryptProviderHandle(
  30. DWORD dwDefaultCSPType,
  31. DWORD dwAlgId1,
  32. DWORD* pdwKeySize1,
  33. DWORD dwAlgId2,
  34. DWORD* pdwKeySize2);
  35. DWORD GetCryptProviderFromRequirements(
  36. DWORD dwAlgId1,
  37. DWORD* pdwKeySize1,
  38. DWORD dwAlgId2,
  39. DWORD* pdwKeySize2,
  40. DWORD* pdwProvType,
  41. LPWSTR* ppszProvName);
  42. BOOL FProviderSupportsAlg(
  43. HCRYPTPROV hQueryProv,
  44. DWORD dwAlgId,
  45. DWORD* pdwKeySize);