Version v0.3.40 - -m Add directory encryption (TAR+GZIP+OTP), integrate ranger for directory selection, add microtar/miniz libraries, remove binary state file backward compatibility - enforce text format only
This commit is contained in:
21
src/main.h
21
src/main.h
@@ -23,7 +23,7 @@
|
||||
#include <ctype.h>
|
||||
|
||||
// Version - Updated automatically by build.sh
|
||||
#define OTP_VERSION "v0.3.38"
|
||||
#define OTP_VERSION "v0.3.39"
|
||||
|
||||
// Constants
|
||||
#define MAX_INPUT_SIZE 4096
|
||||
@@ -130,6 +130,7 @@ char* get_preferred_editor(void);
|
||||
char* get_preferred_file_manager(void);
|
||||
int launch_text_editor(const char* initial_content, char* result_buffer, size_t buffer_size);
|
||||
int launch_file_manager(const char* start_directory, char* selected_file, size_t buffer_size);
|
||||
int launch_directory_manager(const char* start_directory, char* selected_dir, size_t buffer_size);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// CORE CRYPTOGRAPHIC OPERATIONS
|
||||
@@ -238,6 +239,23 @@ int update_pad_checksum_after_entropy(const char* old_chksum, char* new_chksum);
|
||||
int rename_pad_files_safely(const char* old_chksum, const char* new_chksum);
|
||||
int is_pad_unused(const char* pad_chksum);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// DIRECTORY ARCHIVING AND COMPRESSION FUNCTIONS
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Directory encryption/decryption (TAR + GZIP + OTP)
|
||||
int encrypt_directory(const char* dir_path, const char* pad_identifier, const char* output_file);
|
||||
int decrypt_and_extract_directory(const char* encrypted_file, const char* output_dir);
|
||||
int is_compressed_tar_archive(const char* file_path);
|
||||
|
||||
// TAR archive operations
|
||||
int create_tar_archive(const char* dir_path, const char* tar_output_path);
|
||||
int extract_tar_archive(const char* tar_path, const char* output_dir);
|
||||
|
||||
// Compression operations
|
||||
int compress_file_gzip(const char* input_path, const char* output_path);
|
||||
int decompress_file_gzip(const char* input_path, const char* output_path);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// DIRECTORY MANAGEMENT FUNCTIONS
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -314,6 +332,7 @@ int handle_decrypt_menu(void);
|
||||
int handle_pads_menu(void);
|
||||
int handle_text_encrypt(void);
|
||||
int handle_file_encrypt(void);
|
||||
int handle_directory_encrypt(void);
|
||||
int handle_verify_pad(const char* pad_chksum);
|
||||
int handle_delete_pad(const char* pad_chksum);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user