MCPcopy Create free account
hub / github.com/ashkulz/NppFTP / Decrypt

Method Decrypt

src/Encryption.cpp:56–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56char* Encryption::Decrypt(const char * key, int keysize, const char * data, bool addZero) {
57 int size = strlen(data);
58 char * encrdata = SU::HexToData(data, size, false);
59 if (!encrdata)
60 return NULL;
61
62 size = size/2;
63 char * decdata = DES_encrypt(key, keysize, encrdata, size, addZero, DES_DECRYPT);
64 SU::FreeChar(encrdata);
65
66 return decdata;
67}
68
69int Encryption::FreeData(char * data) {
70 return SU::FreeChar(data);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected