From 8f5835824c4be7e72195d6c3fce18d85c079c31e Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Tue, 19 May 2015 13:13:20 +0200 Subject: First try of using the EVP null chipher from OpenSSL --- src/crypt/cryptclassnullcipher.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/crypt/cryptclassnullcipher.h') 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 + #include +#include +#include /** @@ -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 -- cgit v1.2.3-70-g09d2