301 Commits

Author SHA1 Message Date
148070c2bb
created getter function for encryptionOperation_cb
and also created encryptionOperation_type_cb cuz I didn't found any other way to make it work hehe
2022-10-17 16:38:28 +02:00
04856bb9f6
created callback for encryptionOperation 2022-10-16 19:52:56 +02:00
e4c5feedb4
implemented encryptedTextKeyChain function in encrypter & decrypter
you can now change the encryption operation in one function
2022-10-16 19:46:56 +02:00
178df23585
created encryptionOperation function
see next commit for context
2022-10-16 19:42:25 +02:00
a40f9637f0
replaced _Bool with boolean typedef
basically char but it looks good and smart now
2022-10-15 15:21:28 +02:00
f889bb28e3
created CURL_TIMEOUT constant
and implemented it ofc
2022-08-25 12:02:16 +02:00
6982bb2def
added missing why2-test's outputBuffer deallocation
so now if you don't count that fucking json-c library, there are no memory leaks

FUCK YES
2022-08-25 11:55:42 +02:00
3b0a59545d
fixed no connection segfault
this was caused by my stupid-ass
2022-08-25 11:49:54 +02:00
1d769cec36
set cURL timeout to 3s
hey..... versions.json is currently 374 bytes, so it's enough for you, right?
2022-08-25 11:34:54 +02:00
916c670e4b
fixed countRepeatedKeySize result
I forgot that the key has to be 2x longer than text

TEXT = Hi, KEY = abcd
2022-08-25 11:11:35 +02:00
3421fb5b70
*really* fixed countUnusedKeySize result
result number was basically only even
2022-08-25 10:52:05 +02:00
c51002e100
unfucked the countUnusedKeySize fix
this reverts commit f157b2181074d11268abc543a891898dff1057c8
2022-08-24 16:04:54 +02:00
3c600c2d78
removed unused UNUSED modificatiors from countRepeatedKeySize
unused UNUSED lmao
2022-08-24 16:01:48 +02:00
f157b21810
fixed countUnusedKeySize result (I hope) 2022-08-24 16:00:44 +02:00
58333ad132
added repeatedKeySize to why2-test success message 2022-08-24 15:57:24 +02:00
09aa76a33d
created code for countRepeatedKeySize
WARNING: This will work only if you don't change textKeyChain gen, so pls don't
2022-08-24 15:54:53 +02:00
3efb4e6cd0
fixed countRepeatedKeySize parameter typo
in encrypter btw
2022-08-24 15:45:25 +02:00
1cfef53a9a
added missing parameter to noOutput result 2022-08-24 14:58:18 +02:00
2f8ca17e50
added missing UNUSED modificator to countRepeatedKeySize 2022-08-24 14:57:33 +02:00
e293b2f371
added missing 'countRepeatedKeySize' parameter to decrypter & encrypter 2022-08-24 14:56:21 +02:00
21ab6a8674
declared countRepeatedKeySize
just test declaration
2022-08-24 14:54:35 +02:00
85e083ae46
blocking key of less than 1 character 2022-07-29 17:22:24 +02:00
a3802ae811
removed unused static modificator in variable flags 2022-07-24 17:00:18 +02:00
8617e4ca7e
simplified opening VERSIONS file 2022-07-24 16:43:03 +02:00
1bc4a61b1b
preventing any control character from being encryptionSeparator 2022-07-23 18:34:59 +02:00
15e6fac10c
doubled textBuffer size in why2-test 2022-07-23 15:44:39 +02:00
a0ebfd19e2
made why2-test failure much better for debugging & made it more variable
I hope I am deallocating all new things :D
2022-07-23 15:38:36 +02:00
cfdfd2aa2c
replaced UC with _Bool 2022-07-22 18:22:42 +02:00
340834adf6
implemented math callbacks in TKCh generation => made code easier
part 3/3 (done lol)
2022-07-22 17:46:37 +02:00
6a821910f3
created math operation function using callbacks
part 2/3
2022-07-22 17:43:01 +02:00
86cd1e31c0
created math operations callbacks
part 1/3
2022-07-22 17:42:26 +02:00
5e87e4612d
simplified cleaning returningText in decrypter
you stoopid
2022-07-19 17:22:12 +02:00
f7d8bb052e
fixed decryption bug
basically, the buffer had some content after allocation in it, so it screwed up last character in 1/10 cases
2022-07-19 17:18:00 +02:00
bcb33ad354
created exitCode check for why2-test
if exitCode isn't 0, test now fails
2022-07-15 19:55:20 +02:00
dfbf65cc0f
replaced repeating malloc with realloc
tf I tried to fix this much earlier but it was throwing segfaults... I should start taking those pills
2022-07-15 19:32:57 +02:00
090d82842c
article typo fix
indefinite article, bitch
2022-07-14 17:43:35 +02:00
0f01cde0f1
[E&D CHANGE] reversed textKeyChain generation
tag 'old-generation-but_newer' contains older generation

https://github.com/ENGO150/WHY2/tree/old-generation-but_newer
2022-07-11 19:12:41 +02:00
d35ce48684
moved encrypter's 'fileBuffer' deallocation at the end of encryptText 2022-07-11 17:52:45 +02:00
635f946671
changed decrypter's 'encryptedTextKeyChain' allocation to heap 2022-07-11 17:50:23 +02:00
7c87d835dd
removed ALL forgotten (flags) parameters passed to misc functions
I mean... I hope
2022-07-10 18:31:40 +02:00
8363ff25ea
implemented getFlags in misc 2022-07-10 18:27:00 +02:00
163cbb8c6d
removed inputFlags from misc functions
getter time babyyy
2022-07-10 18:24:44 +02:00
e49f56f288
implemented getFlags function 2022-07-10 18:18:36 +02:00
307642272e
implemented setFlags function 2022-07-10 18:17:42 +02:00
ad21a520b5
removed inputFlags from encrypt & decrypt functions 2022-07-10 18:17:05 +02:00
c3b5db0124
declared getFlags & setFlags 2022-07-10 18:10:18 +02:00
fb620fd8c9
created (local variable) DEFAULT_FLAGS to simplify defaultFlags() etc. 2022-07-10 18:04:33 +02:00
8b57e5450b
created 'flags' flag
this variable will be used as default
2022-07-10 17:52:28 +02:00
212f0205c5
renamed noUpdate flag to update & swapped its value everywhere
it was kinda annoying when you were trying to disable it with positive value :DD
2022-07-10 17:51:31 +02:00
71865826fa
renamed noFlags to defaultFlags 2022-07-10 17:40:32 +02:00