Make untracked folder
This commit is contained in:
parent
7f5576ded6
commit
77affb6d55
189 changed files with 10198 additions and 0 deletions
54
Untracked/Doxygen/CryptClass/AbstractSKA.hpp
Normal file
54
Untracked/Doxygen/CryptClass/AbstractSKA.hpp
Normal file
|
@ -0,0 +1,54 @@
|
|||
/**
|
||||
* @file AbstractSKA.hpp
|
||||
* @brief Class for Symmetric-Key Algorithm (SKA)
|
||||
* @author manzerbredes
|
||||
* @date 8 Mars 2015
|
||||
*
|
||||
* Specify which method the algorithm must be implement.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <string>
|
||||
|
||||
|
||||
/**
|
||||
* @class AbstractSKA AbstractSKA.hpp "/CryptClass/AbstractSKA.hpp"
|
||||
* @brief Class for Symmetric-Key Algorithm (SKA)
|
||||
* @author manzerbredes
|
||||
*
|
||||
* This class should not be instanciate directly.
|
||||
*
|
||||
*/
|
||||
|
||||
class AbstractSKA {
|
||||
|
||||
public:
|
||||
AbstractSKA(){
|
||||
}
|
||||
~AbstractSKA(){
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Encrypt data.
|
||||
*
|
||||
* @param key : key used to encrypt data
|
||||
* @param data : contain data to encrypt.
|
||||
*
|
||||
* This method must be overwritten.
|
||||
* **Warning** data will be modified.
|
||||
*
|
||||
*/
|
||||
virtual std::string encrypt(std::string key, std::string data) = 0;
|
||||
|
||||
/**
|
||||
* @brief Decrypt data.
|
||||
*
|
||||
* @param key : key used to decrypt data
|
||||
* @param data : contain data to decrypt.
|
||||
*
|
||||
* This method must be overwritten.
|
||||
* **Warning** data will be modified.
|
||||
*
|
||||
*/
|
||||
virtual std::string decrypt(std::string key, std::string data) = 0;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue