revert why2_generate_key type change

revert c0e49247921b97c15e06427bcbbc3c0628bfff3d
This commit is contained in:
Václav Šmejkal 2023-02-03 17:18:09 +01:00
parent 9207c1c309
commit ae906571e5
Signed by: ENGO150
GPG Key ID: 4A57E86482968843
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
#include <why2/flags.h> #include <why2/flags.h>
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 *textKeyChain, int textKeyChainSize); //GENERATES ARRAY FOR ENCRYPTION/DECRYPTION
enum WHY2_EXIT_CODES why2_generate_key(char *key, int keyLength); //GENERATE ENCRYPTION KEY void why2_generate_key(char *key, int keyLength); //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
enum WHY2_EXIT_CODES why2_check_key(char *key); //CHECKS IF KEY IS VALID enum WHY2_EXIT_CODES why2_check_key(char *key); //CHECKS IF KEY IS VALID

View File

@ -411,7 +411,7 @@ unsigned long why2_compare_time_micro(struct timeval startTime, struct timeval f
return (finishTime.tv_sec - startTime.tv_sec) * 1000000 + finishTime.tv_usec - startTime.tv_usec; return (finishTime.tv_sec - startTime.tv_sec) * 1000000 + finishTime.tv_usec - startTime.tv_usec;
} }
enum WHY2_EXIT_CODES why2_generate_key(char *key, int keyLength) void why2_generate_key(char *key, int keyLength)
{ {
int numberBuffer; int numberBuffer;