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
977 B

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Copyright (c) 1997-1999 Microsoft Corporation
  4. //
  5. // File:
  6. //
  7. // Contents:
  8. //
  9. // History:
  10. //
  11. //---------------------------------------------------------------------------
  12. // MS CD Key
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. typedef int SSRETCODE; // type for return codes
  17. #define SS_OK 0
  18. #define SS_BAD_KEYLENGTH 1
  19. #define SS_OTHER_ERROR 2
  20. #define SS_INVALID_SIGNATURE 3
  21. SSRETCODE CryptVerifySig(
  22. LONG cbMsg, // [IN] number of bytes in message
  23. LPVOID pvMsg, // [IN] binary message to verify
  24. LONG cbKeyPublic, // [IN] number of bytes in public key (from CryptGetKeyLens)
  25. LPVOID pvKeyPublic, // [IN] the generated public key (from CryptKeyGen)
  26. LONG cbitsSig, // [IN] the number of bits in the sig
  27. LPVOID pvSig); // [IN] the digital signature (from CryptSign)
  28. #ifdef __cplusplus
  29. }
  30. #endif