You are browsing as a guest. Sign up (or log in) to start making projects!

3h 17m 34s logged

Handshake 🤝

so i made the handshake sequence
its the same one from SPEC.md where i decided first, didnt change anything

for some reason cant paste here pls check SPEC.md on github lmao

but in short it goes like this:
client and server exchange hello messages with their PSK Proof, Public Key, Nonce (16 bytes) and then key exchange and some session key derivation happens, then Done messages are exchanged which is encrypted with the session key, so it proves both party derived same session key

at the end the handshake functions returns the session (which i have to work on)

there are some things left to do like cleaning up the code, its a bit messy right now i will make it a bit more modular and easy to read later


for testing i used net.Pipe, it gives nice two mock connections type shit, i thought of using real tcp connection first but found this better thing while going through GoLang net library docs

not much to see in image tbh, it just shows the debug print statements i added, those are exchanges between client and server

0
14

Comments 0

No comments yet. Be the first!