diff options
author | George Hazan <george.hazan@gmail.com> | 2013-11-16 14:29:31 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-11-16 14:29:31 +0000 |
commit | 1e097cca2844cf509937eafa88e4b37f703c4e7e (patch) | |
tree | 2ab83d3c353063fc6ae599178b516eb48bddc339 /src/core/stdcrypt/Rijndael.h | |
parent | 04f4f57b6a3f5f516f3700d63ee924ca51b6b042 (diff) |
StdCrypt:
- stronger randomizer;
- ability to validate passwords;
- anti-brutforce key encryption
git-svn-id: http://svn.miranda-ng.org/main/trunk@6919 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core/stdcrypt/Rijndael.h')
-rw-r--r-- | src/core/stdcrypt/Rijndael.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/stdcrypt/Rijndael.h b/src/core/stdcrypt/Rijndael.h index a904259eb5..a69409b929 100644 --- a/src/core/stdcrypt/Rijndael.h +++ b/src/core/stdcrypt/Rijndael.h @@ -33,7 +33,7 @@ public: // chain - initial chain block
// keylength - 16, 24 or 32 bytes
// blockSize - The block size in bytes of this Rijndael (16, 24 or 32 bytes).
- int MakeKey(char const* key, char const* chain, int keylength, int blockSize);
+ int MakeKey(BYTE const* key, char const* chain, int keylength, int blockSize);
private:
//Auxiliary Function
@@ -66,9 +66,9 @@ public: // result - The plaintext generated from a ciphertext using the session key.
void DecryptBlock(char const* in, char* result);
- int Encrypt(char const* in, char* result, size_t n);
+ int Encrypt(void const* in, void* result, size_t n);
- int Decrypt(char const* in, char* result, size_t n);
+ int Decrypt(void const* in, void* result, size_t n);
//Get Key Length
int GetKeyLength()
|