blob: cb7b27b2cb05af2f3c9ae5dee3f09600ffe0cb82 (
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
|
/**
* @file AbstractSKA.hpp
* @brief Class for Symmetric-Key Algorithm (SKA)
* @author manzerbredes
* @date 8 Mars 2015
*
* Specify which method the algorithm must be implement.
*
*/
/**
* @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 void encrypt(std::string key, char* 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 void decrypt(std::string key, char* data) = 0;
};
|