No description
server | ||
build | ||
chacha20.c | ||
chacha20.h | ||
input.txt | ||
main.c | ||
README | ||
sha256.c | ||
sha256.h | ||
xxhash.c | ||
xxhash.h |
https://github.com/kokke/tiny-AES-c https://github.com/kokke/tiny-ECDH-c # Packet formats ## peers ### data [block id x2][packet id x2][data x32768] ## server ### to server [mode x1][email x1-320] mode is either 0 for set of 1 for connect ### to client [ip x4][port x2] # Protocol ## Peers First as a client it sends a set command to the main server and waits then another client sends a connect to the server requesting the first client and both get sent the ip and port of each other one then messages the other and vice versa with only the latter making it both messages including their public key the one that receives the message then replies saying it can hear the other one again with its public key once both know that they can here each other, the one that sent the original set command to the server then sends the other the data ## Server when set is run it sets the ip and port of the provided email address when connect is run it sends the ip info of both clients to the each other it then removes the email from the list of actively waiting machines