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.

42 lines
665 B

  1. /*++
  2. Copyright (C) 1996-2001 Microsoft Corporation
  3. Module Name:
  4. Abstract:
  5. History:
  6. --*/
  7. #ifndef __MSGSIG_H__
  8. #define __MSGSIG_H__
  9. #include <unk.h>
  10. class CSignMessage : public CUnk
  11. {
  12. BOOL m_bSign;
  13. HCRYPTKEY m_hKey;
  14. HCRYPTPROV m_hProv;
  15. CSignMessage();
  16. CSignMessage( HCRYPTKEY hKey, HCRYPTPROV hProv );
  17. void* GetInterface( REFIID ) { return NULL; }
  18. public:
  19. ~CSignMessage();
  20. HRESULT Sign( BYTE* achMsg, DWORD cMsg, BYTE* achSig, DWORD& cSig );
  21. HRESULT Verify( BYTE* achMsg, DWORD cMsg, BYTE* achSig, DWORD cSig );
  22. static HRESULT Create( LPCWSTR wszName, CSignMessage** ppSignMsg );
  23. };
  24. #endif __MSGSIG_H__