change Aes256 to accept buffer

This commit is contained in:
nikola
2024-06-20 12:39:17 +02:00
parent 5e7e4eb40b
commit 9cda42ea4a
7 changed files with 101 additions and 154 deletions

View File

@@ -9,7 +9,7 @@ class Buffer
public:
uint8_t *buffer = nullptr;
size_t taken = 0;
size_t size = 0;
std::string file_path;
Buffer(size_t size);
@@ -35,6 +35,8 @@ public:
bool load_from_file();
bool load_from_file(std::string file_path);
private:
size_t size = 0;
};
#endif
#endif //BUFFER_HPP