From f6586ae894673b561455de5044d2ff31f6a0ef94 Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Wed, 10 Jun 2015 12:52:06 +0200 Subject: Add IV to CryptAes and create hash in CryptEngine --- src/crypt/cryptengine.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/crypt/cryptengine.h') diff --git a/src/crypt/cryptengine.h b/src/crypt/cryptengine.h index 50f91a1..a0d990b 100644 --- a/src/crypt/cryptengine.h +++ b/src/crypt/cryptengine.h @@ -3,6 +3,12 @@ #include +#include +#include +#include + +#include + #include "../cipherssingleton.h" #include "cryptclassbase.h" #include "cryptclassnullcipher.h" @@ -209,6 +215,9 @@ public: //Methods + static QByteArray createPasswordHash(const QString &password); + + static QByteArray createRandomIv(int length); public slots: /** * \brief Slot called when an active algorithm gets selected. @@ -257,6 +266,8 @@ private: //Attributes * \see CryptClassBase */ CryptClassBase* m_cryptClass; + + static void handleOpenSslError(); }; #endif // CRYPTENGINE_H -- cgit v1.2.3-70-g09d2