blob: de03b1b3d50711ee8248ee73490cb1e9a3e52132 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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;
};
|