aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/crypto.go
Commit message (Collapse)AuthorAgeFilesLines
* completed the test. FAIL now. it crashes at diffie-hellman. ECIES -> ↵zelig2015-02-061-16/+29
| | | | secp256k1-go panics
* handshake test to cryptozelig2015-02-061-2/+0
|
* fix crashzelig2015-02-061-22/+29
| | | | | | - add session token check and fallback to shared secret in responder call too - use explicit length for the types of new messages - fix typo resp[resLen-1] = tokenFlag
* rewrite to comply with latest speczelig2015-02-061-53/+138
| | | | | | | | - correct sizes for the blocks : sec signature 65, ecies sklen 16, keylength 32 - added allocation to Xor (should be optimized later) - no pubkey reader needed, just do with copy - restructuring now into INITIATE, RESPOND, COMPLETE -> newSession initialises the encryption/authentication layer - crypto identity can be part of client identity, some initialisation when server created
* add crypto auth logic to p2pzelig2015-02-061-0/+174