summaryrefslogtreecommitdiffstats
path: root/src/crypt/cryptengine.h
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-06-10 12:52:06 +0200
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-06-10 12:52:06 +0200
commitf6586ae894673b561455de5044d2ff31f6a0ef94 (patch)
tree854df037b2f8b5c034bdb0b794c2e19ee47f9fe7 /src/crypt/cryptengine.h
parent74bdec2ff94eec373eb358c00437d55fe44c9238 (diff)
downloadIT-Sicherheit-master.tar.gz
IT-Sicherheit-master.zip
Add IV to CryptAes and create hash in CryptEngineHEADmaster
Diffstat (limited to 'src/crypt/cryptengine.h')
-rw-r--r--src/crypt/cryptengine.h11
1 files changed, 11 insertions, 0 deletions
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 <QObject>
+#include <openssl/evp.h>
+#include <openssl/err.h>
+#include <openssl/rand.h>
+
+#include <QDateTime>
+
#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