summaryrefslogtreecommitdiffstats
path: root/src/crypt/cryptclassnullcipher.h
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-05-19 13:13:20 +0200
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-05-19 13:13:20 +0200
commit8f5835824c4be7e72195d6c3fce18d85c079c31e (patch)
tree002bdc0b07f0aab77a86d9925bf14c5cb5f2c194 /src/crypt/cryptclassnullcipher.h
parentac53eb1848aba14ee7915b45ef6f4321ef4ff1bc (diff)
downloadIT-Sicherheit-8f5835824c4be7e72195d6c3fce18d85c079c31e.tar.gz
IT-Sicherheit-8f5835824c4be7e72195d6c3fce18d85c079c31e.zip
First try of using the EVP null chipher from OpenSSL
Diffstat (limited to 'src/crypt/cryptclassnullcipher.h')
-rw-r--r--src/crypt/cryptclassnullcipher.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/crypt/cryptclassnullcipher.h b/src/crypt/cryptclassnullcipher.h
index 6b3c284..ae05ef6 100644
--- a/src/crypt/cryptclassnullcipher.h
+++ b/src/crypt/cryptclassnullcipher.h
@@ -3,7 +3,11 @@
#include "cryptclassbase.h"
+#include <QDebug>
+
#include <openssl/evp.h>
+#include <openssl/err.h>
+#include <openssl/conf.h>
/**
@@ -23,10 +27,16 @@ public: //Methods
/**
* \brief Class Constructor.
*
- * Class Constructor. Does nothing.
+ * Class Constructor. Initializes openssl.
*/
CryptClassNullCipher();
+ /**
+ * \brief Class Destructor.
+ *
+ * Class Destructor. Deinitializes openssl.
+ */
+ ~CryptClassNullCipher();
/**
* \brief Overloaded Method to encrypt present unencrypted data using the current key.
@@ -44,6 +54,9 @@ public: //Methods
* Data is copied from m_cryptText to m_clearText.
*/
virtual void decrypt();
+
+private:
+ void handleErrors();
};
#endif // CRYPTCLASSNULLCIPHER_H