changed checking functions type from I to UC
This commit is contained in:
parent
86c8460615
commit
b5e27a1857
@ -7,9 +7,9 @@
|
||||
|
||||
void generateTextKeyChain(char *key, int *textKeyChain, int textKeyChainSize); //GENERATES ARRAY FOR ENCRYPTION/DECRYPTION
|
||||
void deallocateOutput(outputFlags flags); //DEALLOCATES flags
|
||||
int checkVersion(inputFlags flags); //THIS FUNCTION CHECKS IF LATEST VERSION OF WHY2 IS USED
|
||||
int checkKey(char *key, inputFlags flags); //CHECKS IF KEY IS VALID
|
||||
int checkText(char *text, inputFlags flags); //CHECKS IF TEXT IS VALID
|
||||
unsigned char checkVersion(inputFlags flags); //THIS FUNCTION CHECKS IF LATEST VERSION OF WHY2 IS USED
|
||||
unsigned char checkKey(char *key, inputFlags flags); //CHECKS IF KEY IS VALID
|
||||
unsigned char checkText(char *text, inputFlags flags); //CHECKS IF TEXT IS VALID
|
||||
unsigned long countIntLength(int number); //RETURNS LENGTH OF number
|
||||
unsigned long countUnusedKeySize(char *text, char *key); //COUNT unusedKeySize
|
||||
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;
|
||||
}
|
||||
|
||||
int checkVersion(inputFlags flags)
|
||||
unsigned char checkVersion(inputFlags flags)
|
||||
{
|
||||
if (flags.noCheck) return SUCCESS;
|
||||
|
||||
@ -287,7 +287,7 @@ void deallocateOutput(outputFlags flags)
|
||||
free(flags.usedKey);
|
||||
}
|
||||
|
||||
int checkKey(char *key, inputFlags flags)
|
||||
unsigned char checkKey(char *key, inputFlags flags)
|
||||
{
|
||||
if (strlen(key) < getKeyLength())
|
||||
{
|
||||
@ -298,7 +298,7 @@ int checkKey(char *key, inputFlags flags)
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
int checkText(char *text, inputFlags flags)
|
||||
unsigned char checkText(char *text, inputFlags flags)
|
||||
{
|
||||
if (strcmp(text, "") == 0)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user