Skip to content

Commit 7d39fd6

Browse files
committed
p2p: make encryption handshake code easier to follow
This mostly changes how information is passed around. Instead of using many function parameters and return values, put the entire state in a struct and pass that. This also adds back derivation of ecdhe-shared-secret. I deleted it by accident in a previous refactoring.
1 parent 2c505ef commit 7d39fd6

2 files changed

Lines changed: 272 additions & 302 deletions

File tree

0 commit comments

Comments
 (0)