implemeted the new integer types of check functions in decrypter

didn't expect this, right? lmao
This commit is contained in:
Václav Šmejkal 2022-06-12 17:06:44 +02:00
parent e036359677
commit 3412ebd8d3
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -10,19 +10,31 @@
outputFlags decryptText(char *text, char *keyNew, inputFlags flags)
{
//CHECK VARIABLE
int checkExitCode;
//TIME VARIABLES
struct timeval startTime;
struct timeval finishTime;
gettimeofday(&startTime, NULL);
//CHECK FOR ACTIVE VERSION
checkVersion(flags);
if ((checkExitCode = checkVersion(flags)) != SUCCESS)
{
return noOutput(checkExitCode);
}
//CHECK FOR INVALID text
checkText(text, flags);
if ((checkExitCode = checkText(text, flags)) != SUCCESS)
{
return noOutput(checkExitCode);
}
//CHECK FOR INVALID key
checkKey(keyNew, flags);
if ((checkExitCode = checkKey(keyNew, flags)) != SUCCESS)
{
return noOutput(checkExitCode);
}
//REDEFINE keyLength
setKeyLength(strlen(keyNew));