23 lines
504 B
C++
23 lines
504 B
C++
#ifndef CryptManager_H
|
|
#define CryptManager_H
|
|
|
|
class CryptManager
|
|
{
|
|
public:
|
|
CryptManager();
|
|
~CryptManager();
|
|
|
|
static void GenerateRSAKey(unsigned int keyLength, const char *privFilename, const char *pubFilename, const char *seed );
|
|
|
|
static void SignFile( CString sPath );
|
|
static bool VerifyFile( CString sPath );
|
|
|
|
static void DigestFile(const char *filename);
|
|
|
|
static CString GetPublicKeyFileName();
|
|
};
|
|
|
|
extern CryptManager* CRYPTMAN; // global and accessable from anywhere in our program
|
|
|
|
#endif
|