Defines functions for processing input files in evo-crypter. More...
#include <stdbool.h>
#include <sys/wait.h>
#include <unistd.h>
Go to the source code of this file.
Classes | |
struct | ChunkProcessingArgs |
Structure to hold arguments for the chunk processing function. More... | |
Functions | |
void | process_input_single_thread (const char *input_file, const char *output_file, const char *generations, bool decrypt) |
Processes the input file using a single thread. | |
void | process_input_multi_thread (const char *input_file, const char *output_file, const char *generations, bool decrypt, int threads) |
Processes the input file using multiple threads. | |
Defines functions for processing input files in evo-crypter.
void process_input_multi_thread | ( | const char * | input_file, |
const char * | output_file, | ||
const char * | generations, | ||
bool | decrypt, | ||
int | threads | ||
) |
Processes the input file using multiple threads.
This function divides the input file into chunks, assigns each chunk to a separate thread for processing, and writes the results to the output file.
input_file | The path to the input file. |
output_file | The path to the output file. |
generations | The generation sequence string. |
decrypt | A flag indicating whether to decrypt (true ) or encrypt (false ). |
threads | The number of threads to use for processing. |
void process_input_single_thread | ( | const char * | input_file, |
const char * | output_file, | ||
const char * | generations, | ||
bool | decrypt | ||
) |
Processes the input file using a single thread.
This function reads the input file in chunks, applies the mutations to each chunk, and writes the result to the output file.
input_file | The path to the input file. |
output_file | The path to the output file. |
generations | The generation sequence string. |
decrypt | A flag indicating whether to decrypt (true ) or encrypt (false ). |