30 #ifndef LAUNCHER_PLUGINS_SYSTEM_CRYPTO_HPP
31 #define LAUNCHER_PLUGINS_SYSTEM_CRYPTO_HPP
37 namespace launcher_plugins {
46 namespace launcher_plugins {
68 const std::vector<unsigned char>& in_data,
69 const std::vector<unsigned char>& in_key,
70 const std::vector<unsigned char>& in_iv,
71 std::vector<unsigned char>& out_decrypted);
86 const std::vector<unsigned char>& in_data,
87 const std::vector<unsigned char>& in_key,
88 const std::vector<unsigned char>& in_iv,
89 std::vector<unsigned char>& out_encrypted);
101 const std::vector<unsigned char>& in_data,
102 const std::vector<unsigned char>& in_key,
103 std::vector<unsigned char>& out_encrypted);
115 Error
base64Decode(
const std::string& in_data, std::vector<unsigned char>& out_decoded);
127 Error
base64Decode(
const std::string& in_data, std::string& out_decoded);
139 Error
base64Encode(
const std::vector<unsigned char>& in_data, std::string& out_encoded);
152 Error
base64Encode(
const unsigned char* in_data,
int in_length, std::string& out_encoded);
168 const std::string& in_input,
169 const std::string& in_key,
170 const std::string& in_ivStr,
171 std::string& out_decrypted);
187 const std::string& in_input,
188 const std::string& in_key,
190 std::string& out_encrypted);
205 Error
random(uint32_t in_length, std::vector<unsigned char>& out_randomData);