diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-03-25 10:15:50 +0100 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-03-25 10:33:32 +0100 |
| commit | a1e3d36dca9c6abf235c7ddf47ab9185c4b748d5 (patch) | |
| tree | 859befb5df101432b7388e1562f90a01c6d8e238 /src/crypt/cryptclassnullcipher.h | |
| download | IT-Sicherheit-a1e3d36dca9c6abf235c7ddf47ab9185c4b748d5.tar.gz IT-Sicherheit-a1e3d36dca9c6abf235c7ddf47ab9185c4b748d5.zip | |
First commit of IT-Sicherheit
Diffstat (limited to 'src/crypt/cryptclassnullcipher.h')
| -rw-r--r-- | src/crypt/cryptclassnullcipher.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/crypt/cryptclassnullcipher.h b/src/crypt/cryptclassnullcipher.h new file mode 100644 index 0000000..6b3c284 --- /dev/null +++ b/src/crypt/cryptclassnullcipher.h @@ -0,0 +1,49 @@ +#ifndef CRYPTCLASSNULLCIPHER_H +#define CRYPTCLASSNULLCIPHER_H + +#include "cryptclassbase.h" + +#include <openssl/evp.h> + + +/** +* \class CryptClassNullCipher +* \brief For testing purposes, NullCipher does nothing to the Text. +* +* The NullCipher class is, like all Ciphers/Algorithm-classes, derived from CryptclassBase. +* It's intended to be used for testing purposes of the overall Programm-Funcionality only and does +* no encryption whatsoever. Data is merely copied from m_cryptText to m_clearText and vice versa. +* \author Uwe Gogolin [Gogolin.Uwe@FH-SWF.de] +* \version 0.1 +* \date 28.02.2013 +*/ +class CryptClassNullCipher : public CryptClassBase +{ +public: //Methods + /** + * \brief Class Constructor. + * + * Class Constructor. Does nothing. + */ + 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(); +}; + +#endif // CRYPTCLASSNULLCIPHER_H |
