added: to crypto:
bool Crypt(const std::string & in, std::string & out) bool Decrypt(const std::string & in, std::string & out) git-svn-id: svn://ttmath.org/publicrep/tito/trunk@396 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
16
src/crypto.h
16
src/crypto.h
@@ -63,8 +63,9 @@ public:
|
||||
crypting AES256 and base64 then
|
||||
so the 'out' string is ready to save as a normal text
|
||||
*/
|
||||
void Crypt(const std::wstring & in, std::wstring & out);
|
||||
void Crypt(const std::vector<char> & in, std::string & out);
|
||||
void Crypt(const std::wstring & in, std::wstring & out);
|
||||
void Crypt(const std::string & in, std::string & out);
|
||||
void Crypt(const std::vector<char> & in, std::string & out);
|
||||
|
||||
|
||||
/*
|
||||
@@ -73,8 +74,9 @@ public:
|
||||
in such a case out is empty
|
||||
if 'in' is empty the 'out' will be empty too
|
||||
*/
|
||||
bool Decrypt(const std::wstring & in, std::wstring & out);
|
||||
bool Decrypt(const std::string & in, std::vector<char> & out);
|
||||
bool Decrypt(const std::wstring & in, std::wstring & out);
|
||||
bool Decrypt(const std::string & in, std::string & out);
|
||||
bool Decrypt(const std::string & in, std::vector<char> & out);
|
||||
|
||||
|
||||
/*
|
||||
@@ -108,9 +110,9 @@ private:
|
||||
|
||||
|
||||
// temporarily fix for Visual Studio
|
||||
// crypto.obj : error LNK2001: unresolved external symbol "void __cdecl Tito::AssignString(char const *,unsigned int,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,bool)" (?AssignString@Tito@@YAXPBDIAAV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@_N@Z)
|
||||
void AssignString(const char * src, size_t len, std::wstring & dst, bool clear = true);
|
||||
void AssignString(const wchar_t * src, size_t len, std::string & dst, bool clear = true);
|
||||
// crypto.obj : error LNK2001: unresolved external symbol "void __cdecl Tito::AssignString(char const *,unsigned int,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,bool)" (?AssignString@Tito@@YAXPBDIAAV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@_N@Z)
|
||||
void AssignString(const char * src, size_t len, std::wstring & dst, bool clear = true);
|
||||
void AssignString(const wchar_t * src, size_t len, std::string & dst, bool clear = true);
|
||||
void AssignString(const std::string & src, std::wstring & dst, bool clear = true);
|
||||
void AssignString(const std::wstring & src, std::string & dst, bool clear = true);
|
||||
|
||||
|
Reference in New Issue
Block a user