#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. | |
#define BUFFER_SIZE 1024 |
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.
symbol | The mutation symbol (e.g., '1', 'a', '#'). |
str | The string to mutate (modified in place). |
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.
symbol | The mutation symbol (e.g., '1', 'a', '#'). |
str | The string to mutate (modified in place). |
void * apply_mutations_to_chunk | ( | void * | arg, |
const char * | generations, | ||
bool | decrypt | ||
) |
Applies a sequence of mutations to a chunk of data.
arg | Pointer to a ChunkProcessingArgs struct containing the buffer, generations, and decrypt flag. |
generations | The generation sequence string. |
decrypt | Flag indicating whether to decrypt (true) or encrypt (false). |