• Felix Lange's avatar
    p2p: make encryption handshake code easier to follow · 7d39fd66
    Felix Lange authored
    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.
    7d39fd66
handshake_test.go 4.13 KB