added why2_set_padding fn

sets padding without messing with flags
This commit is contained in:
Václav Šmejkal 2025-01-12 13:12:50 +01:00
parent d3aa932bdc
commit 0fe3f47752
Signed by: ENGO150
GPG Key ID: 4A57E86482968843
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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);