42 Commits

Author SHA1 Message Date
4c7100760b
changed base64_encode length to size_t* 2025-02-02 15:01:20 +01:00
0a9a716ffe
moved base64 fns to crypto header 2025-02-02 14:59:52 +01:00
481bce366c
removed message parameter from why2_chat_ecc_shared_key 2025-02-01 21:54:43 +01:00
4d8f61259d
removed encryption from why2_chat_ecc_shared_key 2025-02-01 21:51:58 +01:00
4317c9fa5d
renamed why2_chat_ecc_encrypt to why2_chat_ecc_shared_key
it will be used only for encrypting WHY2 key
2025-02-01 21:49:42 +01:00
e51a6bf4e8
created why2_chat_ecc_encrypt fn 2025-02-01 14:54:11 +01:00
bf583fd495
created calculate_ecdh_secret fn
calculates shared secret (ECDH)
2025-02-01 14:53:46 +01:00
ea1bb6789e
added length parameter to why2_sha256 2025-02-01 14:37:53 +01:00
bf354372ff
created why2_chat_ecc_deserialize_public_key fn 2025-02-01 13:03:21 +01:00
313c2930e9
allowing NULL length in base64_decode 2025-02-01 13:00:21 +01:00
7bb6e38a99
created why2_chat_ecc_serialize_public_key fn 2025-02-01 12:55:39 +01:00
c1e7aba879
defined why2_chat_ecc_verify_signature
All checks were successful
Codacy Scan / Codacy Security Scan (push) Successful in 10s
Build WHY2-chat / test-why2 (./out/why2-chat-client, ./configure.sh, ubuntu-latest, ./out/why2-chat-server) (push) Successful in 1m45s
Test Project / test-project (./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./test) (push) Successful in 1m42s
Test WHY2-core / test-why2 (why2, ./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./out/why2-core-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Successful in 2m18s
Test WHY2-logger / test-why2 (why2-logger, ./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./out/why2-logger-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Successful in 2m28s
one commit, 8 hours of going crazy together with AI
2025-01-30 20:07:19 +01:00
c8d197f6b9
returning length in base64_decode 2025-01-30 19:58:44 +01:00
210d23369b
implemented base64 delimiter 2025-01-30 19:38:47 +01:00
d764002546
added base64_decode fn
All checks were successful
Codacy Scan / Codacy Security Scan (push) Successful in 22s
Build WHY2-chat / test-why2 (./out/why2-chat-client, ./configure.sh, ubuntu-latest, ./out/why2-chat-server) (push) Successful in 1m56s
Test WHY2-core / test-why2 (why2, ./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./out/why2-core-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Successful in 2m17s
Test Project / test-project (./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./test) (push) Successful in 2m16s
Test WHY2-logger / test-why2 (why2-logger, ./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./out/why2-logger-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Successful in 2m29s
and tweaked the encode fn a bit
2025-01-29 22:44:46 +01:00
685b8e446e
defined why2_chat_ecc_sign
and its not working as expected lol

i will fix it in next commits, i just need this for change comparison
2025-01-29 21:15:24 +01:00
0b3cb2f957
added local base64_encode fn 2025-01-29 21:14:39 +01:00
8d17915a05
generating only one keyfile
lol ima stoopid - it seems you need only private key file and you can generate the pub from it
2025-01-29 20:52:16 +01:00
eff50818ea
added code for ecc keypair generation
also removed unused rsa shit
2025-01-29 16:35:02 +01:00
d23c166fc6
preventing segfault when user doesn't have homedir in /home 2024-11-17 22:19:42 +01:00
642ef37016
created sha256 function returning string 2024-09-01 20:40:21 +02:00
22e03ca06e
fixed base bug in exp_mod fn 2024-04-13 14:20:52 +02:00
d9483f02ca
fixed rsa crypto input strings & output base 2024-04-13 13:45:40 +02:00
9cf062565a
created why2_chat_rsa_pri_decrypt 2024-04-13 13:40:26 +02:00
2a9df2a4b9
moved why2_chat_rsa_pub_encrypt body into exp_mod
so in next commit, which will be decryption, I won't kms
2024-04-13 13:38:14 +02:00
b74995bbab
changed WHY2_CHAT_RSA_EXPONENT datatype to string 2024-04-13 13:37:06 +02:00
6487ea8b85
defined why2_chat_rsa_pub_encrypt
pog
2024-04-13 13:30:52 +02:00
5bd948c8a0
switched fopen for why2_fopen in crypto
whoopsie
2024-04-13 13:09:54 +02:00
60b437d4e8
implemented why2 crypto getters
bit fucked the file
2024-04-13 13:08:44 +02:00
8f3af8c7d1
defined why2_get_chat* rsa stuff fns 2024-04-13 12:32:43 +02:00
bb8436badd
added body for why2_chat_deallocate_keys 2024-04-13 12:32:19 +02:00
2f4c73ce09
created why2_chat_deallocate_keys fn 2024-04-13 12:26:47 +02:00
ef1f9bbf38
renamed why2_chat_generate_keys to why2_chat_init_keys
I think the name is much more self-explanatory now
2024-04-13 12:24:19 +02:00
cb15d856de
why2_chat_generate_keys grammar fix
yessir i am an english-man fr fr
2024-02-23 20:27:00 +01:00
836d3ec44a
implemented WHY2_CHAT_KEY_BASE macro 2024-02-23 11:55:29 +01:00
4397122aaf
writing the rsa keys out 2024-02-23 11:47:33 +01:00
923b9907db
renamed WHY2_CHAT_PUB_KEY_LOCATION to WHY2_CHAT_KEY_LOCATION 2024-02-23 11:08:19 +01:00
c89ae6c884
implemented WHY2_CHAT_RSA_EXPONENT in why2_chat_generate_keys 2024-02-23 11:04:21 +01:00
0c03ed3785
added key dir check into why2_chat_generate_keys 2024-02-23 10:59:38 +01:00
55550e4ea4
defined why2_chat_generate_keys fn
and guess what! it doesn't save the keys, yet :dd
2024-02-23 10:27:00 +01:00
df4f7aae7d
created generate_prime fn
it uses gmp 😎
2024-02-23 10:25:07 +01:00
13dff8514d
created crypto files 2024-02-23 09:40:34 +01:00