create keypair on startup if one doesn't already exist

This commit is contained in:
Chris Danford
2004-02-15 05:45:18 +00:00
parent 0667124940
commit 5cc79c5f2b
7 changed files with 63 additions and 23 deletions
+6 -1
View File
@@ -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