summaryrefslogtreecommitdiff
path: root/src/core/stdcrypt/stdcrypt.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-11-16 14:29:31 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-11-16 14:29:31 +0000
commit1e097cca2844cf509937eafa88e4b37f703c4e7e (patch)
tree2ab83d3c353063fc6ae599178b516eb48bddc339 /src/core/stdcrypt/stdcrypt.h
parent04f4f57b6a3f5f516f3700d63ee924ca51b6b042 (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/stdcrypt.h')
-rw-r--r--src/core/stdcrypt/stdcrypt.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/stdcrypt/stdcrypt.h b/src/core/stdcrypt/stdcrypt.h
index f685152461..c9a3a72315 100644
--- a/src/core/stdcrypt/stdcrypt.h
+++ b/src/core/stdcrypt/stdcrypt.h
@@ -31,7 +31,7 @@ struct CStdCrypt : public MICryptoEngine, public MZeroedObject
BOOL m_valid;
CMStringA m_password;
- char m_key[KEY_LENGTH];
+ BYTE m_key[KEY_LENGTH];
CRijndael m_aes;
STDMETHODIMP_(void) destroy();
@@ -39,9 +39,9 @@ struct CStdCrypt : public MICryptoEngine, public MZeroedObject
// get/set the instance key
STDMETHODIMP_(size_t) getKeyLength(void);
STDMETHODIMP_(bool) getKey(BYTE *pKey, size_t cbKeyLen);
- STDMETHODIMP_(int) setKey(const BYTE *pKey, size_t cbKeyLen);
+ STDMETHODIMP_(bool) setKey(const BYTE *pKey, size_t cbKeyLen);
- STDMETHODIMP_(void) generateKey(void); // creates a new key inside
+ STDMETHODIMP_(bool) generateKey(void); // creates a new key inside
STDMETHODIMP_(void) purgeKey(void); // purges a key from memory
// sets the master password (in utf-8)