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

/*++
Copyright (C) 1996-2001 Microsoft Corporation
Module Name:
Abstract:
History:
--*/
#ifndef __MSGSIG_H__
#define __MSGSIG_H__
#include <unk.h>
class CSignMessage : public CUnk
{
BOOL m_bSign;
HCRYPTKEY m_hKey;
HCRYPTPROV m_hProv;
CSignMessage();
CSignMessage( HCRYPTKEY hKey, HCRYPTPROV hProv );
void* GetInterface( REFIID ) { return NULL; }
public:
~CSignMessage();
HRESULT Sign( BYTE* achMsg, DWORD cMsg, BYTE* achSig, DWORD& cSig );
HRESULT Verify( BYTE* achMsg, DWORD cMsg, BYTE* achSig, DWORD cSig );
static HRESULT Create( LPCWSTR wszName, CSignMessage** ppSignMsg );
};
#endif __MSGSIG_H__