removed tkch_version from tkch_gen parameters, using flags instead
This commit is contained in:
parent
d7aa65944b
commit
d540c1ea88
@ -27,7 +27,7 @@ extern "C" {
|
|||||||
|
|
||||||
#include <why2/flags.h>
|
#include <why2/flags.h>
|
||||||
|
|
||||||
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
|
void why2_generate_text_key_chain(char *key, int *text_key_chain, int text_key_chain_size); //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
|
||||||
|
@ -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 *text_key_chain, int text_key_chain_size, enum WHY2_TEXT_KEY_CHAIN_VERSIONS version)
|
void why2_generate_text_key_chain(char *key, int *text_key_chain, int text_key_chain_size)
|
||||||
{
|
{
|
||||||
int number_buffer;
|
int number_buffer;
|
||||||
int number_buffer_2;
|
int number_buffer_2;
|
||||||
@ -271,7 +271,7 @@ void why2_generate_text_key_chain(char *key, int *text_key_chain, int text_key_c
|
|||||||
number_buffer -= why2_get_key_length();
|
number_buffer -= why2_get_key_length();
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (version)
|
switch (why2_get_flags().version)
|
||||||
{
|
{
|
||||||
case WHY2_v1:
|
case WHY2_v1:
|
||||||
number_buffer_2 = i;
|
number_buffer_2 = i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user