added WHY2_TEXT_KEY_CHAIN_VERSIONS enum as gen_tkch parameter

This commit is contained in:
Václav Šmejkal 2024-01-24 14:54:30 +01:00
parent 54da223e23
commit 7e33714f53
Signed by: ENGO150
GPG Key ID: 4A57E86482968843
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ enum WHY2_TEXT_KEY_CHAIN_VERSIONS
WHY2_v4 //FOURTH VERSION. THE LATEST ONE WHY2_v4 //FOURTH VERSION. THE LATEST ONE
}; };
void why2_generate_text_key_chain(char *key, int *textKeyChain, int textKeyChainSize); //GENERATES ARRAY FOR ENCRYPTION/DECRYPTION void why2_generate_text_key_chain(char *key, int *text_key_chain, int text_key_chain_size, enum WHY2_TEXT_KEY_CHAIN_VERSIONS version) //GENERATES ARRAY FOR ENCRYPTION/DECRYPTION
char *why2_generate_key(int key_length); //GENERATE ENCRYPTION KEY char *why2_generate_key(int key_length); //GENERATE ENCRYPTION KEY
void why2_deallocate_output(why2_output_flags flags); //DEALLOCATES flags void why2_deallocate_output(why2_output_flags flags); //DEALLOCATES flags
enum WHY2_EXIT_CODES why2_check_version(void); //THIS FUNCTION CHECKS IF LATEST WHY2_VERSION OF WHY2 IS USED enum WHY2_EXIT_CODES why2_check_version(void); //THIS FUNCTION CHECKS IF LATEST WHY2_VERSION OF WHY2 IS USED

View File

@ -254,7 +254,7 @@ enum WHY2_EXIT_CODES why2_check_version(void) //! CRASHES WHEN CALLED FROM CHAT
return WHY2_SUCCESS; return WHY2_SUCCESS;
} }
void why2_generate_text_key_chain(char *key, int *textKeyChain, int textKeyChainSize) void why2_generate_text_key_chain(char *key, int *text_key_chain, int text_key_chain_size, enum WHY2_TEXT_KEY_CHAIN_VERSIONS version)
{ {
int numberBuffer; int numberBuffer;
int numberBuffer2; int numberBuffer2;