evo-crypter
 
Loading...
Searching...
No Matches
mod.c File Reference
#include "mod.h"

Macros

#define BUFFER_SIZE   1024
 

Functions

void apply_mutation_up (char symbol, char *str)
 Applies the appropriate encryption mutation function based on the symbol.
 
void apply_mutation_down (char symbol, char *str)
 Applies the appropriate decryption mutation function based on the symbol.
 
void * apply_mutations_to_chunk (void *arg, const char *generations, bool decrypt)
 Applies a sequence of mutations to a chunk of data.
 

Macro Definition Documentation

◆ BUFFER_SIZE

#define BUFFER_SIZE   1024

Function Documentation

◆ apply_mutation_down()

void apply_mutation_down ( char  symbol,
char *  str 
)

Applies the appropriate decryption mutation function based on the symbol.

This function acts as a dispatcher, selecting and applying the correct decryption function (fn_*_down) based on the provided symbol.

Parameters
symbolThe mutation symbol (e.g., '1', 'a', '#').
strThe string to mutate (modified in place).

◆ apply_mutation_up()

void apply_mutation_up ( char  symbol,
char *  str 
)

Applies the appropriate encryption mutation function based on the symbol.

This function acts as a dispatcher, selecting and applying the correct encryption function (fn_*_up) based on the provided symbol.

Parameters
symbolThe mutation symbol (e.g., '1', 'a', '#').
strThe string to mutate (modified in place).

◆ apply_mutations_to_chunk()

void * apply_mutations_to_chunk ( void *  arg,
const char *  generations,
bool  decrypt 
)

Applies a sequence of mutations to a chunk of data.

Parameters
argPointer to a ChunkProcessingArgs struct containing the buffer, generations, and decrypt flag.
generationsThe generation sequence string.
decryptFlag indicating whether to decrypt (true) or encrypt (false).
Returns
Returns NULL always. Required to be used in pthreads.