|
5174c2685e
|
Just set an s->remote_key pointer to NULL, do not call crypt_key_destroy on it.
|
2024-03-25 05:02:59 +04:00 |
|
|
d9cc37896f
|
Add the empty lines at the end of the sources so clang won't whine and compile. :)
|
2024-03-25 00:56:42 +04:00 |
|
|
0c61d4e433
|
Changed a crypt_hello_get_nonce func because now a half of a nonce is placed after a pub key and before a signature.
|
2024-03-24 05:56:30 +04:00 |
|
|
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 |
|
|
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 |
|
|
16e0149802
|
Replace '< 0' with '== -1'. For the sake of optimisation! xD
|
2024-03-24 05:32:46 +04:00 |
|
|
e4b388f554
|
An include messup was cleaned.
|
2024-03-24 05:06:13 +04:00 |
|
|
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 |
|
|
acc016f10b
|
crypt_session_encrypt() and crypt_session_decrypt() was implemented.
|
2024-03-24 04:38:32 +04:00 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
051d18ba40
|
In crypt.c/.h a var/arg naming was changed as well.
|
2024-03-22 03:32:40 +04:00 |
|
|
35750274d1
|
A current state of a crypt module.
|
2024-03-21 17:50:55 +04:00 |
|