diff options
Diffstat (limited to 'src/core/stdcrypt/stdcrypt.h')
-rw-r--r-- | src/core/stdcrypt/stdcrypt.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/core/stdcrypt/stdcrypt.h b/src/core/stdcrypt/stdcrypt.h index 4d5b0710ca..f685152461 100644 --- a/src/core/stdcrypt/stdcrypt.h +++ b/src/core/stdcrypt/stdcrypt.h @@ -18,15 +18,22 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#define KEYLENGTH (256/8)
+#include "Rijndael.h"
+
+// we use 256-bit keys & 128-bit blocks
+#define KEY_LENGTH 32
+#define BLOCK_SIZE 16
struct CStdCrypt : public MICryptoEngine, public MZeroedObject
{
CStdCrypt();
- BYTE m_key[KEYLENGTH];
+ BOOL m_valid;
CMStringA m_password;
+ char m_key[KEY_LENGTH];
+ CRijndael m_aes;
+
STDMETHODIMP_(void) destroy();
// get/set the instance key
|