split key generation and key writing

This commit is contained in:
Glenn Maynard
2007-01-31 05:15:18 +00:00
parent c4f600fa9f
commit bf3aad4f45
2 changed files with 12 additions and 5 deletions
+2 -1
View File
@@ -11,7 +11,8 @@ public:
CryptManager();
~CryptManager();
static void GenerateRSAKey( unsigned int keyLength, RString privFilename, RString pubFilename );
static void GenerateRSAKey( unsigned int keyLength, RString &sPrivKey, RString &sPubKey );
static void GenerateRSAKeyToFile( unsigned int keyLength, RString privFilename, RString pubFilename );
static void SignFileToFile( RString sPath, RString sSignatureFile = "" );
static bool Sign( RString sPath, RString &sSignatureOut, RString sPrivateKey );
static bool VerifyFileWithFile( RString sPath, RString sSignatureFile = "" );