246 Commits

Author SHA1 Message Date
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
39e174a874 removed unused memory size 2022-05-26 18:40:46 +02:00
0fed6e7f0c Reverted null character "fixes"
This reverts commit 62c21eb37f9bdc9570c53674daf2715373cb80f5.
2022-05-26 18:40:46 +02:00
b84b8aa7cc added/fixed null characters 2022-05-26 18:40:46 +02:00
c3c8ddb82e changed KEY_LENGTH to 100 in why2-test
the previous similar commit had only 75 chars, cuz the NULL character wasn't implemented xd

5093d2395f
2022-05-26 18:40:37 +02:00
5093d2395f added NULL character to generated key 2022-05-25 17:58:19 +02:00
35959a4393 changed textKeyChain generation > fixed possible buffer overflow 2022-05-25 17:51:57 +02:00
4534ec7521 changed KEY_LENGTH to 75 in why2-test 2022-05-25 17:47:46 +02:00
1303d3d220 added missing comments to why2-test 2022-05-25 17:45:07 +02:00
a8c3c5f28a added missing new line to why2-test 2022-05-25 17:39:57 +02:00
12557a6a94 removed new FUCKING trailing spaces 2022-05-25 17:20:10 +02:00
cffdd22b85 found some better way to rewind FILE in version checking
just removing that TODO
2022-05-25 17:18:39 +02:00
375aeccc1c added more output to test failure 2022-05-24 19:10:26 +02:00
314846a45e whoops, I missed one
foq
2022-05-24 19:01:31 +02:00
6282bc6aec removed only char sizeof
'cause char length is 1 lulw
2022-05-24 18:56:32 +02:00
ef4f9f5084 reverted the sizeof removing
I have no idea
2022-05-24 18:45:44 +02:00
d63c97614f moved fileBuffer deallocation to beggining of encrypter
it for some reason threw segfault
2022-05-24 18:21:33 +02:00
cfb55cd493 removed stdlib from why2-app
idk why it was there
2022-05-24 18:17:49 +02:00
e4a2986c12 made test failure memory safe 2022-05-24 18:09:35 +02:00
74931327c0 changed test's buffer size to 64
this shouldn't be problem (I think)
2022-05-24 18:07:46 +02:00
70a2040bab removed unused sizeof
fixing my recent mistakes
2022-05-24 18:03:08 +02:00
cea8f06ad8 changed maximal line length (versions.json) to 32
I think 32 is enough/fine
2022-05-24 17:54:25 +02:00
a1503d6b74 changed buffer for versions.json to correct size
it was set to 256 and guess what? the current versions.json is EXACTLY 256 characters long lmaoo
2022-05-24 17:51:19 +02:00
7f90c74124 trying to add correct memory allocation
it's possible I'll revert this lol
2022-05-23 18:02:59 +02:00
9a2663c7a4 replaced malloc in loop with realloc
when I was coding first version of WHY2 I didn't know there's something like it lulw
2022-05-22 15:27:37 +02:00
64bc4482a6 added exit note to DOWNLOAD_FAILED 2022-05-21 18:35:51 +02:00
f4148b0de7 secured key generation
I made generating 'random' numbers much much secured -> /dev/urandom
2022-05-21 16:26:24 +02:00
f2da93818b removed *all* trailing spaces
God, please...
2022-05-21 15:46:19 +02:00
2440440353 removed deprecated flags completely 2022-05-20 18:30:36 +02:00
471c676af2 added manual allocation for buffer
just trying to fix da fukin github actionz
2022-05-13 17:31:40 +02:00
67380f51cf fixed invalid allocations
I forgot to add sizeof(int)
2022-05-13 17:30:17 +02:00
1ff00c5ccf removed the fucking github thing
FUUUCK
2022-05-12 18:50:58 +02:00
70dd6783ad trying to fix github actions problems 2022-05-12 18:45:32 +02:00
60f0ef807e fixed checkVersion problem(s)
this was caused to invalid buffer
2022-05-12 18:42:17 +02:00
3c536f22a8 created github flag
cuz github actions is crashing due to low RAM
2022-05-12 18:41:39 +02:00
c936ac4b6c implemented why2.h in main files 2022-05-12 17:12:33 +02:00