Commit Graph

75 Commits

Author SHA1 Message Date
Juan Batiz-Benet
86a553596a removed old spipe 2014-12-21 05:45:32 -08:00
Juan Batiz-Benet
e6412c8f8b secio: remove old debug statements 2014-12-21 05:45:30 -08:00
Juan Batiz-Benet
d1b5450875 secio: comment out hyperverbose debugging
this is really only useful when debugging that one pkg.

I wish "debug" could be easily set on only one "pkg" at a time,
making everything else Info+.
2014-12-19 19:46:04 -08:00
Juan Batiz-Benet
fbee577d3b secio: at last! bugfix found. 2014-12-19 19:36:01 -08:00
Juan Batiz-Benet
16497ed7a3 more secio debugging 2014-12-19 19:35:50 -08:00
Juan Batiz-Benet
30558d40ff secio debugging 2014-12-19 19:14:57 -08:00
Juan Batiz-Benet
fc10d6937d peer: test key/id relationship 2014-12-19 12:29:23 -08:00
Juan Batiz-Benet
d16eb663c4 peer change 2014-12-19 12:20:30 -08:00
Juan Batiz-Benet
8079e04fe2 key marshalling 2014-12-19 12:20:30 -08:00
Juan Batiz-Benet
3b29653022 updated msgio + secio 2014-12-16 05:10:45 -08:00
Juan Batiz-Benet
881f5c9883 secio unexpose bufPool 2014-12-12 03:33:09 -08:00
Juan Batiz-Benet
e7edeca392 added log.Events to secio 2014-12-12 03:29:09 -08:00
Brian Tiger Chow
67665069d1 Update interface.go 2014-12-12 03:10:47 -08:00
Brian Tiger Chow
24308148ad Update interface.go 2014-12-12 03:10:25 -08:00
Juan Batiz-Benet
9267f45085 secio: encrypt copy
sadly, encrypting needs to copy, as the user supplied buffer
must not be mangled.
2014-12-12 02:47:37 -08:00
Juan Batiz-Benet
8d961fc03b secio: better handshake log msg 2014-12-12 02:47:36 -08:00
Juan Batiz-Benet
5aab08fe4f secio -- spipe v2
This commit introduces secio, the next generation spipe.
2014-12-12 02:45:23 -08:00
Juan Batiz-Benet
9d05b35231 crypto/key: stretcher refactor 2014-12-12 02:45:22 -08:00
Brian Tiger Chow
74eb03231d fix(core, peer) helpers to testutil, err handling
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 14:32:52 -08:00
Brian Tiger Chow
d77c4bb5e0 refactor(peer): create peer through peerstore
for safety!

use mockpeer.WithID methods to create peers in tests

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 02:10:42 -08:00
Brian Tiger Chow
73a89e161d refactor(peerstore) s/Get/FindOrCreate
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 02:10:42 -08:00
Jeromy
4f083d54d6 write a few package doc strings to improve look of godoc 2014-11-08 21:42:36 -08:00
Jeromy
88bf39118c comment comment comment comment 2014-11-03 03:02:56 +00:00
Jeromy
6efaa1d811 remove signed pipe 2014-11-01 16:07:56 -07:00
Jeromy
5edbca2e70 cleanup from CR 2014-11-01 16:07:56 -07:00
Jeromy
98f56ab7e2 remove sha1 from hmac hash suite options 2014-11-01 16:07:56 -07:00
Jeromy
950957240a address comments from PR 2014-11-01 16:07:56 -07:00
Jeromy
a8069024e9 cut down on allocations 2014-11-01 16:07:56 -07:00
Jeromy
027920540f more memory tweaks 2014-11-01 16:07:56 -07:00
Jeromy
9b1c99e9aa shrink msgio buffer size to decrease memory pressure 2014-11-01 16:07:56 -07:00
Jeromy
32417724a6 Reenable secure channel code 2014-11-01 16:07:56 -07:00
Jeromy
f89cfc1108 moved pipes package 2014-11-01 16:07:56 -07:00
Jeromy
07733b17b3 msgio pooling first hack 2014-11-01 16:07:56 -07:00
Jeromy
ffc59fff1b add blowfish code and refactor pipes and duplex a little 2014-11-01 16:07:56 -07:00
Jeromy
01c0c6e169 implement signed pipe and add blowfish cipher to supported suites 2014-11-01 16:07:56 -07:00
Jeromy
3994762ca6 fix bug 2014-11-01 16:07:56 -07:00
Jeromy
317ca2f865 benchmark secure channel 2014-11-01 16:07:56 -07:00
Jeromy
d92db12460 lots of logging 2014-10-26 00:45:40 +00:00
Brian Tiger Chow
2ed7da8cfd refactor(crypto) mv proto PBPublicKey -> PublicKey, etc. 2014-10-22 21:49:43 -07:00
Brian Tiger Chow
fdcf3f6d34 chore(crypto/spipe) use generic Makefile 2014-10-22 21:39:19 -07:00
Brian Tiger Chow
157035233e fix(crypto/spipe/pb) rename proto package -> spipe_pb 2014-10-22 15:54:18 -07:00
Brian Tiger Chow
6e9e29b87d fix(crypto) rename proto package -> crypto_pb, regen go file
+ add Makefile
2014-10-22 15:54:17 -07:00
Brian Tiger Chow
e3a9a11afc refactor(crypto) move proto to internal pb package
https://docs.google.com/document/d/1e8kOo3r51b2BWtTs_1uADIA5djfXhPT36s6eHVRIvaU/edit
2014-10-22 15:54:17 -07:00
Brian Tiger Chow
673bb1ba68 refactor(crypto/spipe) move proto to internal pb package
https://docs.google.com/document/d/1e8kOo3r51b2BWtTs_1uADIA5djfXhPT36s6eHVRIvaU/edit
2014-10-22 15:54:17 -07:00
Juan Batiz-Benet
9ca87fbb93 peer.Peer is now an interface
![](http://m.memegen.com/77n7dk.jpg)
2014-10-20 03:26:46 -07:00
Juan Batiz-Benet
b1d11ccfcb peerstore constructs peers
Now, all peers should be retrieved from the Peerstore, which will
construct the peers accordingly. This ensures there's only one peer
object per peer (opposite would be bad: things get out sync)

cc @whyrusleeping
2014-10-20 00:44:44 -07:00
Juan Batiz-Benet
63d6ee6daa multiconn in swarm 2014-10-19 05:05:28 -07:00
Juan Batiz-Benet
f8d70f344b simultaneous open should work for now
It's a patch, really. it's not the full multiconn fix.
2014-10-18 20:01:27 -07:00
Juan Batiz-Benet
ffba031469 test closing/cancellation
- does end properly
- no goroutines leaked!
2014-10-18 04:36:20 -07:00
Juan Batiz-Benet
8aed79cd97 fixed data races 2014-10-18 04:36:20 -07:00