196 Commits

Author SHA1 Message Date
0e246be627
created why2_list_push_at fn in llist
pushes to specific position
2024-11-21 16:49:27 +01:00
08181e5f19
renamed decrypter's key_new to key
haha same shit
2024-11-20 21:45:45 +01:00
1aab7bf996
created padding in encrypter
lot of pain
2024-11-20 21:41:21 +01:00
5cc04d94b7
renamed encrypter's key_new to key
haha stupid old me was lazy af
2024-11-20 21:40:48 +01:00
f95608f52a
moved key's random number generation to why2_random fn 2024-11-20 17:56:04 +01:00
f754e43e19
made sum_segment comments more explanatory 2024-11-20 17:10:39 +01:00
6e7cdde99d
changed why2_sum_segment datatype to ULL
just in case
2024-11-20 16:33:22 +01:00
10fe26cca1
using rolling-hash-like way to count why2_sum_segment 2024-11-20 16:32:13 +01:00
c0e9381642
renamed why2_checksum_segment to why2_sum_segment
it isn't that safe to be considered a checksum and the name checksum can be misleading. i am going to use it for getting padding size
2024-11-20 16:19:59 +01:00
5833502c7a
added checksum warning 2024-11-19 22:30:18 +01:00
7638881217
created why2_checksum_segment fn
it isn't meant to be unique checksum. it just really messses with the range of values
2024-11-19 22:29:07 +01:00
d0e6d794e0
implemented padding rate in all why2_input_flags usages 2024-11-19 21:12:02 +01:00
d14f9adaf4
simplified stupid code in tkch_gen
damn old me was really dumb
2024-11-19 20:51:33 +01:00
035928456e
fixed possible WHY2_v4 security problem 2024-11-19 20:48:08 +01:00
d23c166fc6
preventing segfault when user doesn't have homedir in /home 2024-11-17 22:19:42 +01:00
a7523a64a2
removed 'unused' code from decrypter
dear god, I hate you from the bottom of my heart, but, please do not break my code by removing this code. i have no fucking idea what it does and how it got there. if you'll protect my code stability, I will do absolutely nothing. hail satan
2024-11-17 21:18:28 +01:00
f917140ae5
created more secure tkch WHY_v4
good luck with brute forcing now haha
2024-11-17 20:55:13 +01:00
329c3c9cd2
added missing why2_directory call to why2_check_version 2024-08-30 15:01:27 +02:00
3fc339a9fb
fully implemented new WHY2_CONFIG_DIR
i moved it to user folder cause it causes permission problems on multi-user machine.
2024-08-30 00:54:17 +02:00
e802f5f483
moved why2_dir from init_config to why2_directory fn 2024-08-30 00:47:52 +02:00
41bbfc2b18
reverted the demented why2_get_version 2024-08-28 12:44:33 +02:00
debf90e5d2
implemented why2_get_version in why2_check_version 2024-08-28 11:55:29 +02:00
f20550dec6
removed chat why2_check_version error todo
lol i def have clue why it works now
2024-08-28 11:46:51 +02:00
c37538aa75
defined why2_list_get_size
not sure if this is correct lol

EDIT: It didn't work. I fixed it now lmao
2024-04-27 12:26:56 +02:00
65135ac961
created why2_allocated fn
checks for why2-mem allocation
2024-04-20 11:22:09 +02:00
f1fd7c07ea
fixed linked list linkage problems
First of all, is linkage even a word? :D Second thing, I am so fucking stupid...
2024-04-17 17:22:44 +02:00
a141065189
addded null check to why2_deallocate 2024-02-25 12:25:29 +01:00
0abd38e877
fixed byte format overflowing
yippee
2024-02-24 21:56:43 +01:00
9734749c3e
implemented WHY2_OUTPUT_BYTE in decrypter
i choose literally the worst approach but YEAH...

...it doesn't work...

...it overflows...
2024-02-24 21:05:09 +01:00
226f9b3759
preventing encrypted bytes from being zero 2024-02-24 19:51:51 +01:00
23f7019883
defined why2_byte_format_length 2024-02-24 16:57:23 +01:00
89d721fa9d
implemented WHY2_OUTPUT_BYTE in encrypter output 2024-02-24 12:52:06 +01:00
773591d452
implemented WHY2_OUTPUT_TEXT in encrypter 2024-02-24 12:48:38 +01:00
782e964fa2
made decrypter variables snake_case 2024-02-24 11:56:05 +01:00
58327f3046
made encrypter variables snake_case 2024-02-24 11:55:56 +01:00
06ae819a82
added the WHY2_OUTPUT_TEXT enum to every why2_input_flags usage 2024-02-23 20:36:27 +01:00
8fe73fafe9
implemented getrandom instead of rand
also made why2_generate_key's variables snake_case
2024-02-22 22:05:12 +01:00
0525c43b6f
reverted "removed pointless strlen from for loops"
This reverts commit 49b53ec5b1ffd1931e51c7d7c17a64a99e2bd54e.
2024-02-20 14:45:35 +01:00
49b53ec5b1
removed pointless strlen from for loops 2024-02-20 13:45:47 +01:00
2408e0cef5
removed non-so-stupid gotos from core-misc
in the name of Satan, please do not cause any problems
2024-02-19 12:27:16 +01:00
bd3eb8ed4a
removed duplicate tkch version
so yeah v1 and v2 were the same
2024-01-24 21:07:45 +01:00
42f406f6b6
implemented tkch_version in why2_input_flags 2024-01-24 15:11:22 +01:00
bd92cd312d
tkch gen fix 2024-01-24 15:10:47 +01:00
d540c1ea88
removed tkch_version from tkch_gen parameters, using flags instead 2024-01-24 15:08:37 +01:00
12e4b7afe5
implemented tkch_versions in tkch_gen 2024-01-24 15:01:31 +01:00
7e33714f53
added WHY2_TEXT_KEY_CHAIN_VERSIONS enum as gen_tkch parameter 2024-01-24 14:54:30 +01:00
54da223e23
moved the historic tkch functions into enum versions 2024-01-24 14:47:48 +01:00
6e51e51a38
removed "old" prefix from gen_tkch_number functions 2024-01-24 14:38:12 +01:00
5a0766871d
created fourth old_gen_tkch function
this is the latest one which is being used to this day
2024-01-24 14:37:17 +01:00
5a88fbf045
created third old_gen_tkch function 2024-01-24 14:27:58 +01:00