Add parameters to method encrypt and decrypt.
This commit is contained in:
parent
26ed8d2c91
commit
4bcfddc79e
1 changed files with 8 additions and 4 deletions
|
@ -22,28 +22,32 @@
|
||||||
class AbstractSKA {
|
class AbstractSKA {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
AbstractSKA();
|
AbstractSKA(){
|
||||||
~AbstractSKA();
|
}
|
||||||
|
~AbstractSKA(){
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Encrypt data.
|
* @brief Encrypt data.
|
||||||
*
|
*
|
||||||
|
* @param key : key used to encrypt data
|
||||||
* @param data : contain data to encrypt.
|
* @param data : contain data to encrypt.
|
||||||
*
|
*
|
||||||
* This method must be overwritten.
|
* This method must be overwritten.
|
||||||
* **Warning** data will be modified.
|
* **Warning** data will be modified.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
virtual void encrypt(char* data) = 0;
|
virtual void encrypt(std::string key, char* data) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Decrypt data.
|
* @brief Decrypt data.
|
||||||
*
|
*
|
||||||
|
* @param key : key used to decrypt data
|
||||||
* @param data : contain data to decrypt.
|
* @param data : contain data to decrypt.
|
||||||
*
|
*
|
||||||
* This method must be overwritten.
|
* This method must be overwritten.
|
||||||
* **Warning** data will be modified.
|
* **Warning** data will be modified.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
virtual void decrypt(char* data) = 0;
|
virtual void decrypt(std::string key, char* data) = 0;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue