summaryrefslogtreecommitdiff
path: root/src/core/stdcrypt/stdcrypt.h
diff options
context:
space:
mode:
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)