split out crypto++-specific signing code; prefer to create our own RageFileBasic

This commit is contained in:
Glenn Maynard
2005-05-20 01:42:25 +00:00
parent f098157a4f
commit 57d9817c5c
2 changed files with 25 additions and 4 deletions
+1
View File
@@ -14,6 +14,7 @@ public:
static void GenerateRSAKey( unsigned int keyLength, CString privFilename, CString pubFilename, CString seed );
static void SignFileToFile( CString sPath, CString sSignatureFile = "" );
static bool SignFile( RageFileBasic &file, CString sPrivKey, CString &sSignatureOut, CString &sError );
static bool VerifyFile( RageFileBasic &file, CString sSignature, CString sPublicKey, CString &sError );
static bool VerifyFileWithFile( CString sPath, CString sSignatureFile = "" );
static bool VerifyFileWithFile( CString sPath, CString sSignatureFile, CString sPublicKeyFile );