use 2048 keys everywhere else
Steven Allen committed
Aug 23, 2019 at 14:36 UTC
a2a70d2cc02071e9eb09d1c4fc12a47f8154bcce
5 files changed
+5
-6
cmd/seccat/seccat.go
+2
-2
@@ -113,8 +113,8 @@ func main() {
113
}
114
115
func setupPeer(a args) (peer.ID, pstore.Peerstore, error) {
116
- if a.keybits < 1024 {
117
- return "", nil, errors.New("bitsize less than 1024 is considered unsafe")
116
+ if a.keybits < 2048 {
117
+ return "", nil, errors.New("bitsize less than 2048 is considered unsafe")
118
}
119
120
out("generating key pair...")
go.mod
-1
@@ -109,7 +109,6 @@ require (
109
go4.org v0.0.0-20190313082347-94abd6928b1d // indirect
110
golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb
111
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7 // indirect
112
- google.golang.org/appengine v1.4.0 // indirect
112
gopkg.in/cheggaaa/pb.v1 v1.0.28
113
gotest.tools/gotestsum v0.3.4
114
)
test/3nodetest/bootstrap/Dockerfile
+1
-1
@@ -1,6 +1,6 @@
1
FROM zaqwsx_ipfs-test-img
2
3
-RUN ipfs init -b=1024
3
+RUN ipfs init -b=2048
4
ADD . /tmp/id
5
RUN mv -f /tmp/id/config /root/.ipfs/config
6
RUN ipfs id
test/3nodetest/client/Dockerfile
+1
-1
@@ -1,6 +1,6 @@
1
FROM zaqwsx_ipfs-test-img
2
3
-RUN ipfs init -b=1024
3
+RUN ipfs init -b=2048
4
ADD . /tmp/id
5
RUN mv -f /tmp/id/config /root/.ipfs/config
6
RUN ipfs id
test/3nodetest/server/Dockerfile
+1
-1
@@ -1,6 +1,6 @@
1
FROM zaqwsx_ipfs-test-img
2
3
-RUN ipfs init -b=1024
3
+RUN ipfs init -b=2048
4
ADD . /tmp/test
5
RUN mv -f /tmp/test/config /root/.ipfs/config
6
RUN ipfs id