// // Created by miti on 21/07/19. // #ifndef DECRYPTORAPP_FILEIO_H #define DECRYPTORAPP_FILEIO_H // For reading from/writing to file -sealing. #include #include #include #include namespace FileIO { int write_to_fd(int fd, uint8_t* msg, uint32_t* expected_msg_length); int read_from_fd(int fd, uint8_t* msg, uint32_t* expected_msg_length); size_t check_if_file_exists_return_size(char* filename, int* fd_ptr); }; #endif //DECRYPTORAPP_FILEIO_H