2004-02-15 04:47:32 +00:00
|
|
|
#ifndef CryptManager_H
|
|
|
|
|
#define CryptManager_H
|
|
|
|
|
|
|
|
|
|
class CryptManager
|
|
|
|
|
{
|
|
|
|
|
public:
|
2004-02-15 05:45:18 +00:00
|
|
|
CryptManager();
|
|
|
|
|
~CryptManager();
|
|
|
|
|
|
|
|
|
|
static void GenerateRSAKey(unsigned int keyLength, const char *privFilename, const char *pubFilename, const char *seed );
|
2004-02-15 04:47:32 +00:00
|
|
|
|
|
|
|
|
static void SignFile( CString sPath );
|
|
|
|
|
static bool VerifyFile( CString sPath );
|
|
|
|
|
|
|
|
|
|
static void DigestFile(const char *filename);
|
2004-02-16 05:35:06 +00:00
|
|
|
|
|
|
|
|
static CString GetPublicKeyFileName();
|
2004-02-15 04:47:32 +00:00
|
|
|
};
|
|
|
|
|
|
2004-02-15 05:45:18 +00:00
|
|
|
extern CryptManager* CRYPTMAN; // global and accessable from anywhere in our program
|
|
|
|
|
|
2004-02-15 04:47:32 +00:00
|
|
|
#endif
|