summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-12-05 20:26:10 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-12-05 20:26:10 +0000
commit0b0980ca4414e0f3771db1e70b16d81914e75596 (patch)
treebf729073ba959675ca85c980ee307cd0377583e2
parent6398843b9b87c71ee92e59d8a798adbb3daa435f (diff)
fix for the AES initial chain
git-svn-id: http://svn.miranda-ng.org/main/trunk@7057 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--src/core/stdcrypt/encrypt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/stdcrypt/encrypt.cpp b/src/core/stdcrypt/encrypt.cpp
index 1616ac376f..c5d0bbb7bf 100644
--- a/src/core/stdcrypt/encrypt.cpp
+++ b/src/core/stdcrypt/encrypt.cpp
@@ -83,7 +83,7 @@ bool CStdCrypt::setKey(const BYTE *pKey, size_t cbKeyLen)
return false;
memcpy(m_key, &tmp.m_key, KEY_LENGTH);
- m_aes.MakeKey(m_key, m_password, KEY_LENGTH, BLOCK_SIZE);
+ m_aes.MakeKey(m_key, "Miranda", KEY_LENGTH, BLOCK_SIZE);
return m_valid = true;
}
@@ -94,7 +94,7 @@ bool CStdCrypt::generateKey(void)
return false;
memcpy(m_key, tmp, KEY_LENGTH);
- m_aes.MakeKey(m_key, m_password, KEY_LENGTH, BLOCK_SIZE);
+ m_aes.MakeKey(m_key, "Miranda", KEY_LENGTH, BLOCK_SIZE);
return m_valid = true;
}