1
0
Fork 0
Commit Graph

13 Commits

Author SHA1 Message Date
Alexander Andreev 944a81a8bf
Let's swap a signature and a half of a nonce. And sign both a pub key and the half of a nonce. 2024-03-24 05:52:19 +04:00
Alexander Andreev 1afd678fd4
Let's put some pointer safety. Like checks for NULL and actually freeing them in case of errors. 2024-03-24 05:35:39 +04:00
Alexander Andreev 16e0149802
Replace '< 0' with '== -1'. For the sake of optimisation! xD 2024-03-24 05:32:46 +04:00
Alexander Andreev e4b388f554
An include messup was cleaned. 2024-03-24 05:06:13 +04:00
Alexander Andreev 98581204e9
Well, actually, let a crypt_hello_get_nonce func return just a "unsigned char *" without a const modifier. 2024-03-24 04:54:59 +04:00
Alexander Andreev acc016f10b
crypt_session_encrypt() and crypt_session_decrypt() was implemented. 2024-03-24 04:38:32 +04:00
Alexander Andreev 3ec30111e2
Removed an absolutely clueless const modifier from a bool argument that was introduced during a usual late night programming session. :) 2024-03-24 02:23:57 +04:00
Alexander Andreev 0cdca672a0
Now hello has a half of a nonce is being generated. A crypt_hello_get_nonce() func was introduced to make a full-length nonce. 2024-03-24 02:18:27 +04:00
Alexander Andreev 61b1992828
Put just a touch of pointer magick in a crypt module. Also put const modifiers here and there. 2024-03-23 05:52:03 +04:00
Alexander Andreev a875891088
A crypt module had many changes. *_destroy() funcs were added to securely erase the keys. A set of new defines were introduced to mask the ones from a libsodium. Funcs for load and store the keys in a FILE. Added a crypt_hello() func. 2024-03-23 04:21:41 +04:00
Alexander Andreev fb9e62fc8b
crypt_store_*_key funcs was implemented. Also a test code in a main func comes along. 2024-03-22 04:16:43 +04:00
Alexander Andreev 051d18ba40
In crypt.c/.h a var/arg naming was changed as well. 2024-03-22 03:32:40 +04:00
Alexander Andreev 35750274d1
A current state of a crypt module. 2024-03-21 17:50:55 +04:00