create keypair on startup if one doesn't already exist
This commit is contained in:
@@ -4,7 +4,10 @@
|
||||
class CryptManager
|
||||
{
|
||||
public:
|
||||
static void GenerateRSAKey(unsigned int keyLength, const char *privFilename, const char *pubFilename, const char *seed);
|
||||
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 );
|
||||
@@ -12,4 +15,6 @@ public:
|
||||
static void DigestFile(const char *filename);
|
||||
};
|
||||
|
||||
extern CryptManager* CRYPTMAN; // global and accessable from anywhere in our program
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user