evo-crypter
 
Loading...
Searching...
No Matches
input_processing.c File Reference
#include "input_processing.h"
#include "../mutations/mod.h"
#include "utils.h"
#include <pthread.h>

Macros

#define BUFFER_SIZE   1024
 

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.
 

Macro Definition Documentation

◆ BUFFER_SIZE

#define BUFFER_SIZE   1024

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).