| 123456789101112131415161718192021222324 |
- //
- // Created by miti on 21/07/19.
- //
- #ifndef DECRYPTORAPP_FILEIO_H
- #define DECRYPTORAPP_FILEIO_H
- // For reading from/writing to file -sealing.
- #include <fcntl.h>
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <errno.h>
- 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
|