1
0
Commit Graph

24 Commits

Author SHA1 Message Date
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
3b68835c9c
Oh, because of goto used some var can never be presented, so lets move them right before the first use of a goto. 2024-03-24 04:56:02 +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
8df5a6344e
Another change of main to show an example of key exchange and data encryption. 2024-03-24 04:41:08 +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
2786fb9c87
An unused stdlib.h include was removed from net.c. 2024-03-23 04:22:36 +04:00
0d47261c51
Current state of main. 2024-03-23 04:22:01 +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
b5d92489b8
In an audio module: 1) removed a commented out block of code; 2) uint8_t -> unsigned char; 3) size_t -> int; 4) make audio_read() return a number of encoded bytes or -1 on an error. 2024-03-23 04:17:19 +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
e6c94b64a0
First try to implement a network module. 2024-03-22 03:50:58 +04:00
051d18ba40
In crypt.c/.h a var/arg naming was changed as well. 2024-03-22 03:32:40 +04:00
e075a99a28
In audio.c/.h arg/var naming style was changed. 2024-03-22 03:30:12 +04:00
b233d8bc43
Fixed an ifndef in crypt.h. 2024-03-22 03:24:01 +04:00
20c99d0540
Last main.c. 2024-03-21 17:51:03 +04:00
35750274d1
A current state of a crypt module. 2024-03-21 17:50:55 +04:00
f13e7e20fd
Completed an audio module using a blocking I/O. 2024-03-21 17:50:20 +04:00
64176055d0
An initial commit. :) 2024-03-21 04:10:02 +04:00