2022-04-22 18:39:48 +02:00
|
|
|
#ifndef WHY2_MISC_H
|
|
|
|
#define WHY2_MISC_H
|
|
|
|
|
2022-05-30 19:09:47 +02:00
|
|
|
#include <sys/time.h>
|
|
|
|
|
2022-05-06 17:48:28 +02:00
|
|
|
#include <why2/flags.h>
|
|
|
|
|
2022-05-28 19:38:46 +02:00
|
|
|
void generateTextKeyChain(char *key, int *textKeyChain, int textKeyChainSize); //GENERATES ARRAY FOR ENCRYPTION/DECRYPTION
|
2022-05-08 19:54:46 +02:00
|
|
|
void deallocateOutput(outputFlags flags); //DEALLOCATES flags
|
2022-07-10 18:24:44 +02:00
|
|
|
unsigned char checkVersion(); //THIS FUNCTION CHECKS IF LATEST VERSION OF WHY2 IS USED
|
|
|
|
unsigned char checkKey(char *key); //CHECKS IF KEY IS VALID
|
|
|
|
unsigned char checkText(char *text); //CHECKS IF TEXT IS VALID
|
2022-05-29 17:47:50 +02:00
|
|
|
unsigned long countIntLength(int number); //RETURNS LENGTH OF number
|
2022-05-30 18:01:21 +02:00
|
|
|
unsigned long countUnusedKeySize(char *text, char *key); //COUNT unusedKeySize
|
2022-05-30 19:09:47 +02:00
|
|
|
unsigned long compareTimeMicro(struct timeval startTime, struct timeval finishTime); //COMPARE TIMES IN MICROSECONDS
|
2022-04-22 18:39:48 +02:00
|
|
|
|
|
|
|
#endif
|