831 Commits

Author SHA1 Message Date
02d48ef32c
blocking update in why2-test 2022-06-12 16:43:22 +02:00
ebe54b4b4a
added missing SUCCESS value to skipping check in checkVersion 2022-06-12 16:37:32 +02:00
99e1ca932d
added missing SUCCESS exit to checkKey & checkText 2022-06-12 16:36:41 +02:00
827331c2ff
changed all other checking functions type to int 2022-06-12 16:35:43 +02:00
d196818ec0
changed checkVersion return type to int
it will return exitCode
2022-06-12 16:34:19 +02:00
78e93f6d19
removed unreachable/duplicate code from encrypter
I have no clue why, but there was duplicate code for checking text
2022-06-12 16:29:35 +02:00
f9bdbb1053
replaced all exit calls by returning noOutput 2022-06-12 16:28:16 +02:00
c7902f5c83
added missing exit code to returning outputFlags in decrypter & encrypter 2022-06-12 16:23:26 +02:00
8c787b5387
replaced exit for noOutput in INVALID_TEXT scenario 2022-06-12 16:22:29 +02:00
045db6c7db
added exitCode parameter to noOutput function 2022-06-12 16:21:12 +02:00
c5de589fff
created noOutput function
let's play a game - I will not explain what it does and you'll start thinking about it
2022-06-12 16:17:09 +02:00
7245b03a37
implemented the INVALID_TEXT exit value 2022-06-12 16:13:23 +02:00
23663d5524
added warning
sad
2022-06-11 19:05:23 +02:00
388f0d05c7
created code for auto-update
it's just beta - you have to run program with root perms
2022-06-11 19:00:24 +02:00
d1e6ff12dc
blocking auto-update as default 2022-06-11 18:53:25 +02:00
98ec31c9cf
removed the 'git' files
omfg I'm so stupid -> you can do this MUCH easier
2022-06-11 16:59:45 +02:00
d912491b55
stealed some code and put it into 'git' files 2022-06-11 16:51:17 +02:00
a911cef259
created 'git' header & source files 2022-06-11 16:26:49 +02:00
7d36275b2a
made 'else' prettier 2022-06-10 19:48:45 +02:00
8cddd8ee30
removed unused check for using checkVersion 2022-06-08 19:27:55 +02:00
312e362674
replaced all skipCheck for noCheck 2022-06-08 19:26:24 +02:00
5511210d89
added missing flags to inputFlags constructors 2022-06-08 19:25:54 +02:00
e4cc4ee082
added backspace character after wiki link in why2-app
I'm just bored...
2022-05-31 18:58:09 +02:00
54f819a741
added tabs into why2-test success message 2022-05-31 18:52:05 +02:00
da19d8fd10
made why2-test success message more organized
just divided it into more lines
2022-05-31 18:49:28 +02:00
169c72594a
moved checkVersion before checkText in encrypter 2022-05-31 18:45:24 +02:00
57c49a3d72
added checking for active version to decrypter 2022-05-31 18:44:25 +02:00
64c225f56e
added missing space to compareTimeMicro 2022-05-30 19:18:37 +02:00
213c9ea37f
added elapsedTime to why2-test success message
but in miliseconds (instead of microseconds)
2022-05-30 19:13:43 +02:00
9823b5044a
added elapsedTime to outputFlags
this returns elapsed time in microseconds
2022-05-30 19:09:47 +02:00
69867cc0ba
added unusedKeySize to why2-test success message 2022-05-30 18:06:35 +02:00
637ee2b842
fixed invalid unusedKeySize
I put wrong variable as parameter
2022-05-30 18:04:24 +02:00
abbe519ab4
added unusedKeySize to outputFlags
this returns positive number, which represents how many chars from key are unused
2022-05-30 18:01:21 +02:00
96945a4d31
simplified getting content of fileBuffer in checkVersion
i have no idea why it was like that
2022-05-29 18:40:33 +02:00
7714e45019 changed countIntLength type from I to UL 2022-05-29 17:47:50 +02:00
e3790a2bff changed keyLength type from I to UL 2022-05-29 17:46:16 +02:00
483194b52c added missing deallocation to why2-test
I forgot to deallocate encrypted text before decryption
2022-05-29 17:00:43 +02:00
4e0a0c7a27 created function checkText
this checks if text has some content
2022-05-29 16:49:18 +02:00
ac82127bcc fixed decryption returningText bugs
I forgot that newly allocated text has some content....
2022-05-29 16:44:14 +02:00
0d64f4fa7c changed textKeyChain generation
it's a little change but it will make encryption/decryption old text UNSUCCESSFUL
2022-05-28 19:45:26 +02:00
3d48c87d8b made generating textKeyChain more variable 2022-05-28 19:41:57 +02:00
ad6209b1cb changed generateTextKeyChain's key type from array to pointer 2022-05-28 19:38:46 +02:00
92ad02dcd2 why2-app TEXT_TO_ENCRYPT typo fix 2022-05-27 18:01:13 +02:00
b540d5f36c created getter for no inputFlags 2022-05-27 17:25:02 +02:00
252bdef502 added note for unknown version 2022-05-26 19:50:58 +02:00
0437279b41 doubled buffer size for why2-test
next commit will change TEST_TEXT, so this is necessary
2022-05-26 19:42:33 +02:00
e94c273bd9 probably fixed deallocateOutput segfault
I thought the key returned as outputFlags (decrypter) was pointer to completely new address, but it often tried to deallocate unallocated key
2022-05-26 19:35:22 +02:00
fd05727b10 keyNew typo fix
whoops, I replaced keyNew for key (which doesn't have any content at this stage)
2022-05-26 19:11:52 +02:00
e16de23f57 simplified why2-app 2022-05-26 18:52:24 +02:00
073cdd2468 moved checking for valid key to misc
I'm trying to make code variable as much as possible
2022-05-26 18:40:46 +02:00