moved encrypted data output/input to FileListIO

This commit is contained in:
mr-alice 2016-09-03 18:46:03 +02:00
parent 371171fcbb
commit 5b221c56db
4 changed files with 107 additions and 75 deletions

View file

@ -61,6 +61,9 @@ public:
template<class T> static bool deserialise(const unsigned char *buff,uint32_t size,uint32_t& offset,T& val) ;
template<class T> static uint32_t serial_size(const T& val) ;
static bool saveEncryptedDataToFile(const std::string& fname,const unsigned char *data,uint32_t total_size);
static bool loadEncryptedDataFromFile(const std::string& fname,unsigned char *& data,uint32_t& total_size);
private:
static bool write125Size(unsigned char *data,uint32_t total_size,uint32_t& offset,uint32_t size) ;
static bool read125Size (const unsigned char *data,uint32_t total_size,uint32_t& offset,uint32_t& size) ;