diff --git a/include/flags.h b/include/flags.h index d65cd1b..d15a9f4 100644 --- a/include/flags.h +++ b/include/flags.h @@ -113,6 +113,8 @@ void why2_set_key_length(int keyLengthNew); void why2_set_flags(why2_input_flags newFlags); //.... whatcha think? void why2_set_encryption_operation(why2_encryption_operation_cb newEncryptionOperation); //are you that dumb? void why2_set_memory_identifier(char *new_memory_identifier); +void why2_set_padding(unsigned long padding); //SET PADDING RATE WITHOUT REWRITING INPUT FLAGS + void why2_reset_memory_identifier(void); //hmmm, what could reset mean.... huh #ifdef __cplusplus diff --git a/src/core/lib/flags.c b/src/core/lib/flags.c index 7d68b56..32850d6 100644 --- a/src/core/lib/flags.c +++ b/src/core/lib/flags.c @@ -145,6 +145,11 @@ void why2_set_memory_identifier(char *new_memory_identifier) memory_identifier = new_memory_identifier; } +void why2_set_padding(unsigned long padding) +{ + flagsAllah.padding = padding; +} + void why2_reset_memory_identifier(void) { why2_list_remove_back(&identifier_list);