Commit Graph

247 Commits

Author SHA1 Message Date
dignifiedquire
bab5f6dd95 fixup: openssl 2019-08-01 16:37:30 -07:00
dignifiedquire
da42c385fc fix: do not allocate when comparing keys 2019-08-01 16:37:30 -07:00
Steven Allen
3390f7d16d
Merge pull request #47 from libp2p/fix/go-mod-tidy
chore: tidy
2019-08-01 16:37:17 -07:00
Steven Allen
35e24d3b6b chore: tidy 2019-08-01 16:36:54 -07:00
bigs
a7cc4bffb1
Merge pull request #34 from libp2p/bug/weak-rsa-keys
Raise minimum bits required for RSA key to 2048
2019-08-01 15:28:04 -08:00
Cole Brown
f1175dbc91 Rename constant for weak RSA key environment variable 2019-08-01 19:05:47 -04:00
Cole Brown
d95ff26e5e UNSAFE -> WEAK in RSA key environment variable 2019-08-01 13:57:48 -04:00
Yusef Napora
62b2c6c482
bring back plaintext 2.0.0 with new constructor (#42)
* bring back plaintext 2.0.0 with new constructor

* fix deprecation comment

* rm unused context argument

* only check remote id validity if we actually have keys

* bring back msgio & simultaneous read/write
2019-07-30 16:46:24 -04:00
Steven Allen
be90519893
Merge pull request #44 from libp2p/fix/43
avoid duplicate randomly generated keys/peer-ids
2019-07-25 10:10:45 -07:00
Jakub Sztandera
f9ca60b486 Add compat check (#40)
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-25 15:51:06 +01:00
Steven Allen
a182f52659 avoid duplicate randomly generated keys/peer-ids
This implements #4 from #43.

fixes #43
2019-07-22 15:12:08 -07:00
Cole Brown
0ae8685baf Add defualt case with meaningful panic 2019-07-17 17:34:22 -04:00
Raúl Kripalani
8890e1b22b
Revert "update insecure transport to plaintext/2.0.0 (#37)" (#38)
This reverts commit b5729d89f3.
2019-07-15 00:10:22 +01:00
bigs
1d45af25d9
Merge pull request #33 from libp2p/bug/curve-name
Return error rather than panic in GenerateEKeyPair
2019-07-12 17:32:13 -04:00
Cole Brown
c7c0a1cdf0 Add test for unknown elliptic curves 2019-07-12 17:09:27 -04:00
bigs
c3f7bb216e
Merge pull request #32 from libp2p/bug/key-equality
Replace bytes.Equal -> subtle.ConstantTimeCompare
2019-07-12 16:45:22 -04:00
Cole Brown
652a852edd Use short-circuiting comparisons for public keys 2019-07-12 16:34:29 -04:00
Cole Brown
c817d49d02 Add env flag for allowing unsafe rsa keys in tests 2019-07-12 16:04:56 -04:00
Yusef Napora
b5729d89f3
update insecure transport to plaintext/2.0.0 (#37)
* add plaintext/2.0.0 (with ugly protoc hack)

* gofmt

* gofmt (for real this time)

* add `go_package` option to proto files

* Revert "add `go_package` option to proto files"

5a543a79bd

* less hacky protobuf imports

* add doc comment for PublicKeyFromProto

* clean up handshake

* go fmt, lol

* use network.MessageSizeMax for ggio reader
2019-07-12 13:24:30 -04:00
Cole Brown
f10115e58f Raise minimum bits required for RSA key to 2048 2019-07-10 17:54:14 -04:00
Cole Brown
bc01c84a59 Remove support for blowfish 2019-07-10 17:30:45 -04:00
Cole Brown
23da4bd6da Return error rather than panic in GenerateEKeyPair 2019-07-10 15:42:51 -04:00
Cole Brown
2726b6493c Replace bytes.Equal -> subtle.ConstantTimeCompare 2019-07-10 15:30:22 -04:00
Jakub Sztandera
2835a4015f Add license files (#24)
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-06-24 18:25:52 +01:00
Łukasz Magiera
786c4f4e0f eventbus interface changes (#22) 2019-06-21 17:46:11 +01:00
bigs
5f4de346cb
Merge pull request #19 from libp2p/feat/metrics-redux
Add OpenCensus metrics registration functionality to core
2019-06-20 16:17:37 -04:00
Cole Brown
34240388a9 Add OpenCensus metrics registration functionality to core 2019-06-20 16:08:22 -04:00
Raúl Kripalani
99f36b1806
update golang.org/x/crypto (#21) 2019-06-20 16:03:47 +01:00
Whyrusleeping
6cf790510f eventbus abstraction + initial events (#17) 2019-06-20 15:59:53 +01:00
Raúl Kripalani
c1c8fd773a
peerstore/protobook: support removing protocols. (#20) 2019-06-19 21:58:27 +01:00
Steven Allen
8f222f4b5a
Merge pull request #16 from libp2p/dep/update
dep: update
2019-05-31 12:38:05 -07:00
Steven Allen
b214bcb86a dep: update
We just did this but I somehow missed the sha256-simd tagged release.
2019-05-31 12:32:45 -07:00
Steven Allen
00d5e8b22e
Merge pull request #15 from libp2p/feat/addrinfos
feat(peer): implement AddrInfosFromP2pAddrs and SplitAddr
2019-05-31 12:28:33 -07:00
Steven Allen
c2a62a74af feat(peer): implement AddrInfosFromP2pAddrs and SplitAddr
* SplitAddr is a simpler way to split an address into a multiaddr and an ID.
* AddrInfosFromP2pAddrs converts a set of multiaddrs into a set of AddrInfos.
2019-05-31 12:25:57 -07:00
Steven Allen
a1593a6d03
Merge pull request #14 from libp2p/chore/cleanup-addr-parsing
chore: cleanup address parsing
2019-05-31 10:28:46 -07:00
Steven Allen
ecce2522bf fix: handle empty addrs case 2019-05-30 22:25:37 -07:00
Steven Allen
5ea5a0797b chore: cleanup address parsing
* Use SplitLast to avoid allocating too much.
* Avoid converting to/from strings when working with multiaddrs.
2019-05-30 21:57:09 -07:00
Steven Allen
456893a5d4 dep: update dependencies (#12) 2019-05-28 11:59:31 +01:00
Raúl Kripalani
bac72eb843
remove WIP note from readme. 2019-05-26 15:33:21 +01:00
Raúl Kripalani
e34d318b75
remove erroneous line from README. 2019-05-26 15:32:54 +01:00
Raúl Kripalani
f21b5666f4 update travis build matrix += openssl. 2019-05-23 16:37:40 +01:00
Raúl Kripalani
79bf30a5a4 fix duplicated import. 2019-05-23 16:14:50 +01:00
Raúl Kripalani
434568ab29 travis configuration file. 2019-05-23 16:10:57 +01:00
Raúl Kripalani
07fbce0b46
absorb {crypto,peer} test utils. (#8)
Avoids circular module dependency.
2019-05-23 16:07:58 +01:00
Raúl Kripalani
6e566d10f4
Absorb go-libp2p abstractions and core types into this module (#1) 2019-05-22 18:31:11 +01:00
Raúl Kripalani
2aa2acf05f
Update README.md 2019-05-02 19:13:49 +01:00
Raúl Kripalani
7f05a8a4f5
create README.md 2019-04-16 13:14:04 +01:00