| 2 | #include "v8_wrapper.h" |
| 3 | |
| 4 | static void transform_data(void *data, size_t length) |
| 5 | { |
| 6 | static const char key[] = "A5dgY6lz9fpG9kGNiH1mZ"; |
| 7 | const int key_length = sizeof(key) - 1; |
| 8 | |
| 9 | uint8_t *buffer = reinterpret_cast<uint8_t *>(data); |
| 10 | |
| 11 | for (size_t i = 0; i < length; i++) |
| 12 | { |
| 13 | buffer[i] ^= static_cast<uint8_t>(key[i % key_length]); |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | static void load_datastore(cef_string_t *json) |
| 18 | { |
no outgoing calls
no test coverage detected