• F
    p2p: make encryption handshake code easier to follow · 7d39fd66
    Felix Lange 提交于
    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.go 13.0 KB