diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-02-19 11:10:10 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-02-19 11:10:10 +0000 |
commit | 0a434b502ca329afd6a7afd0dc474238e146ccd5 (patch) | |
tree | b3e8904a2ba7d8b518e3ac3b07b0fe321088153e /plugins/Kuzne4ikCrypt/src/encrypt.cpp | |
parent | 9c247e83bd2241caddcffac926c4775d5b143940 (diff) |
code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@16306 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Kuzne4ikCrypt/src/encrypt.cpp')
-rw-r--r-- | plugins/Kuzne4ikCrypt/src/encrypt.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/Kuzne4ikCrypt/src/encrypt.cpp b/plugins/Kuzne4ikCrypt/src/encrypt.cpp index 62b3b3a24c..2d97103691 100644 --- a/plugins/Kuzne4ikCrypt/src/encrypt.cpp +++ b/plugins/Kuzne4ikCrypt/src/encrypt.cpp @@ -98,7 +98,6 @@ bool CCrypt::setKey(const BYTE *pKey, size_t cbKeyLen) if (tmp.m_crc32 != crc32(0xAbbaDead, (LPCBYTE)m_password.GetString(), m_password.GetLength()))
return false;
- m_valid = true;
memcpy(m_key, &tmp.m_key, KEY_LENGTH);
init_ecb_14(m_key, m_ctx);
@@ -164,7 +163,7 @@ BYTE* CCrypt::encodeBuffer(const void *src, size_t cbLen, size_t *cbResultLen) BYTE *result = (BYTE*)mir_alloc(cbLen);
- if (encrypt_ecb(m_ctx, tmpBuf, LPBYTE(result), cbLen)) {
+ if (encrypt_ecb(m_ctx, tmpBuf, result, cbLen)) {
mir_free(result);
return NULL;
}
|