TDES -> DES3
This commit is contained in:
parent
3e9d5779ca
commit
c0e3a49234
2
deps/mongoose
vendored
2
deps/mongoose
vendored
@ -1 +1 @@
|
|||||||
Subproject commit ff159bf30ac1a213c3dd0b0714c7cd07db616ad2
|
Subproject commit af6fc64ab9bec64e91b2bebc16f71d07d5d2e208
|
2
deps/protobuf
vendored
2
deps/protobuf
vendored
@ -1 +1 @@
|
|||||||
Subproject commit e3891655868a465ad0d17ddc2b1ea95dd0a39adf
|
Subproject commit 549dde19282767af6ba875ace06644ab5cfd14e2
|
@ -8,7 +8,7 @@ namespace Utils
|
|||||||
{
|
{
|
||||||
void Initialize()
|
void Initialize()
|
||||||
{
|
{
|
||||||
TDES::Initialize();
|
DES3::Initialize();
|
||||||
Rand::Initialize();
|
Rand::Initialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -122,14 +122,14 @@ namespace Utils
|
|||||||
|
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
#pragma region TDES
|
#pragma region DES3
|
||||||
|
|
||||||
void TDES::Initialize()
|
void DES3::Initialize()
|
||||||
{
|
{
|
||||||
register_cipher(&des3_desc);
|
register_cipher(&des3_desc);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string TDES::Encrypt(std::string text, std::string iv, std::string key)
|
std::string DES3::Encrypt(std::string text, std::string iv, std::string key)
|
||||||
{
|
{
|
||||||
std::string encData;
|
std::string encData;
|
||||||
encData.resize(text.size());
|
encData.resize(text.size());
|
||||||
@ -144,7 +144,7 @@ namespace Utils
|
|||||||
return encData;
|
return encData;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string TDES::Decrpyt(std::string data, std::string iv, std::string key)
|
std::string DES3::Decrpyt(std::string data, std::string iv, std::string key)
|
||||||
{
|
{
|
||||||
std::string decData;
|
std::string decData;
|
||||||
decData.resize(data.size());
|
decData.resize(data.size());
|
||||||
|
@ -285,7 +285,7 @@ namespace Utils
|
|||||||
static bool VerifyMessage(Key key, std::string message, std::string signature);
|
static bool VerifyMessage(Key key, std::string message, std::string signature);
|
||||||
};
|
};
|
||||||
|
|
||||||
class TDES
|
class DES3
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static void Initialize();
|
static void Initialize();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user