implemented why2_generate_key type change

This commit is contained in:
Václav Šmejkal 2023-02-08 19:32:22 +01:00
parent 6e3599ca74
commit e0f0ad73b5
Signed by: ENGO150
GPG Key ID: 4A57E86482968843
2 changed files with 2 additions and 7 deletions

View File

@ -72,9 +72,7 @@ why2_output_flags why2_encrypt_text(char *text, char *keyNew)
why2_set_key_length(strlen(key));
} else //LOAD KEY
{
key = why2_malloc(why2_get_key_length() + 1);
why2_generate_key(key, why2_get_key_length());
key = why2_generate_key(why2_get_key_length());
}
//LOAD textKeyChain

View File

@ -26,13 +26,10 @@ int main(void)
{
//VARIABLES
why2_log_file logger = why2_init_logger(WHY2_WRITE_DIR); //INITIALIZE LOGGER FILE
char *used_key = why2_malloc(why2_get_key_length() + 1);
char *used_key = why2_generate_key(why2_get_key_length()); //GENERATE KEY
why2_decrypted_output decrypted;
int exit_code = 0;
//GENERATE KEY
why2_generate_key(used_key, why2_get_key_length());
//FLAGS
why2_log_flags flags =
{