removed inputFlags from misc functions
getter time babyyy
This commit is contained in:
parent
e49f56f288
commit
163cbb8c6d
@ -7,9 +7,9 @@
|
|||||||
|
|
||||||
void generateTextKeyChain(char *key, int *textKeyChain, int textKeyChainSize); //GENERATES ARRAY FOR ENCRYPTION/DECRYPTION
|
void generateTextKeyChain(char *key, int *textKeyChain, int textKeyChainSize); //GENERATES ARRAY FOR ENCRYPTION/DECRYPTION
|
||||||
void deallocateOutput(outputFlags flags); //DEALLOCATES flags
|
void deallocateOutput(outputFlags flags); //DEALLOCATES flags
|
||||||
unsigned char checkVersion(inputFlags flags); //THIS FUNCTION CHECKS IF LATEST VERSION OF WHY2 IS USED
|
unsigned char checkVersion(); //THIS FUNCTION CHECKS IF LATEST VERSION OF WHY2 IS USED
|
||||||
unsigned char checkKey(char *key, inputFlags flags); //CHECKS IF KEY IS VALID
|
unsigned char checkKey(char *key); //CHECKS IF KEY IS VALID
|
||||||
unsigned char checkText(char *text, inputFlags flags); //CHECKS IF TEXT IS VALID
|
unsigned char checkText(char *text); //CHECKS IF TEXT IS VALID
|
||||||
unsigned long countIntLength(int number); //RETURNS LENGTH OF number
|
unsigned long countIntLength(int number); //RETURNS LENGTH OF number
|
||||||
unsigned long countUnusedKeySize(char *text, char *key); //COUNT unusedKeySize
|
unsigned long countUnusedKeySize(char *text, char *key); //COUNT unusedKeySize
|
||||||
unsigned long compareTimeMicro(struct timeval startTime, struct timeval finishTime); //COMPARE TIMES IN MICROSECONDS
|
unsigned long compareTimeMicro(struct timeval startTime, struct timeval finishTime); //COMPARE TIMES IN MICROSECONDS
|
||||||
|
@ -63,7 +63,7 @@ char *replaceWord(char *string, char *old, char *new) //CODE FROM: https://www.g
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned char checkVersion(inputFlags flags)
|
unsigned char checkVersion()
|
||||||
{
|
{
|
||||||
if (flags.noCheck) return SUCCESS;
|
if (flags.noCheck) return SUCCESS;
|
||||||
|
|
||||||
@ -289,7 +289,7 @@ void deallocateOutput(outputFlags flags)
|
|||||||
free(flags.usedKey);
|
free(flags.usedKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned char checkKey(char *key, inputFlags flags)
|
unsigned char checkKey(char *key)
|
||||||
{
|
{
|
||||||
if (strlen(key) < getKeyLength())
|
if (strlen(key) < getKeyLength())
|
||||||
{
|
{
|
||||||
@ -300,7 +300,7 @@ unsigned char checkKey(char *key, inputFlags flags)
|
|||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned char checkText(char *text, inputFlags flags)
|
unsigned char checkText(char *text)
|
||||||
{
|
{
|
||||||
if (strcmp(text, "") == 0)
|
if (strcmp(text, "") == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user