summaryrefslogtreecommitdiffstats
path: root/src/crypt/cryptclassnullcipher.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypt/cryptclassnullcipher.h')
-rw-r--r--src/crypt/cryptclassnullcipher.h30
1 files changed, 3 insertions, 27 deletions
diff --git a/src/crypt/cryptclassnullcipher.h b/src/crypt/cryptclassnullcipher.h
index ae05ef6..b25c8e9 100644
--- a/src/crypt/cryptclassnullcipher.h
+++ b/src/crypt/cryptclassnullcipher.h
@@ -1,13 +1,7 @@
#ifndef CRYPTCLASSNULLCIPHER_H
#define CRYPTCLASSNULLCIPHER_H
-#include "cryptclassbase.h"
-
-#include <QDebug>
-
-#include <openssl/evp.h>
-#include <openssl/err.h>
-#include <openssl/conf.h>
+#include "cryptclassevp.h"
/**
@@ -21,7 +15,7 @@
* \version 0.1
* \date 28.02.2013
*/
-class CryptClassNullCipher : public CryptClassBase
+class CryptClassNullCipher : public CryptClassEvp
{
public: //Methods
/**
@@ -38,25 +32,7 @@ public: //Methods
*/
~CryptClassNullCipher();
- /**
- * \brief Overloaded Method to encrypt present unencrypted data using the current key.
- *
- * NullCipher is used for testing purposes and simulation. No actual encryption is done.
- * Data is copied from m_clearText to m_cryptText.
- */
- virtual void encrypt();
-
-
- /**
- * \brief Overloaded Method to decrypt present encrypted data using the current key.
- *
- * NullCipher is used for testing purposes and simulation. No actual decryption is done.
- * Data is copied from m_cryptText to m_clearText.
- */
- virtual void decrypt();
-
-private:
- void handleErrors();
+ virtual const EVP_CIPHER *algorithm();
};
#endif // CRYPTCLASSNULLCIPHER_H