diff options
Diffstat (limited to 'src/crypt/cryptengine.h')
| -rw-r--r-- | src/crypt/cryptengine.h | 11 |
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 |
