evo-crypter
 
Loading...
Searching...
No Matches
input_processing.h File Reference

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.
 

Detailed Description

Defines functions for processing input files in evo-crypter.

Function Documentation

◆ process_input_multi_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.

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.

Parameters
input_fileThe path to the input file.
output_fileThe path to the output file.
generationsThe generation sequence string.
decryptA flag indicating whether to decrypt (true) or encrypt (false).
threadsThe number of threads to use for processing.

◆ process_input_single_thread()

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.

Parameters
input_fileThe path to the input file.
output_fileThe path to the output file.
generationsThe generation sequence string.
decryptA flag indicating whether to decrypt (true) or encrypt (false).