forgetIt/CryptClass/AbstractSKA.hpp

50 lines
1,018 B
C++
Raw Normal View History

2015-03-08 13:09:01 +04:00
/**
* @file AbstractSKA.hpp
* @brief Class for Symmetric-Key Algorithm (SKA)
* @author manzerbredes
* @date 8 Mars 2015
*
* Specify which method the algorithm must be implement.
*
*/
2015-03-08 13:55:15 +04:00
2015-03-08 13:09:01 +04:00
/**
* @class AbstractSKA AbstractSKA.hpp "/CryptClass/AbstractSKA.hpp"
* @brief Class for Symmetric-Key Algorithm (SKA)
* @author manzerbredes
*
2015-03-08 13:55:15 +04:00
* This class should not be instanciate directly.
2015-03-08 13:09:01 +04:00
*
*/
class AbstractSKA {
public:
AbstractSKA();
~AbstractSKA();
2015-03-08 13:55:15 +04:00
/**
* @brief Encrypt data.
*
* @param data : contain data to encrypt.
*
* This method must be overwritten.
* **Warning** data will be modified.
*
*/
virtual void encrypt(char* data) = 0;
/**
* @brief Decrypt data.
*
* @param data : contain data to decrypt.
*
* This method must be overwritten.
* **Warning** data will be modified.
*
*/
virtual void decrypt(char* data) = 0;
2015-03-08 13:09:01 +04:00
};