#pragma once #include #include #include namespace aes { constexpr size_t BLOCK_SIZE = 16; constexpr size_t KEY_SIZE_128 = 16; std::vector cbc_encrypt(const uint8_t *key, const uint8_t *iv, const uint8_t *input, size_t length, std::string *error = nullptr); std::vector cbc_decrypt(const uint8_t *key, const uint8_t *iv, const uint8_t *input, size_t length, std::string *error = nullptr); }