summaryrefslogtreecommitdiff
path: root/internal/speed
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-08-23 15:05:15 +0200
committerJakob Unterwurzacher2021-08-23 15:05:15 +0200
commit69d88505fd7f4cb0d9e4f1918de296342fe05858 (patch)
treebbe102cb74b8d17b39ef16e3ab9b32cf94a314a4 /internal/speed
parentc9abfc8f06e1e0ce8e8b7ca480507647572a5df7 (diff)
go mod: declare module version v2
Our git version is v2+ for some time now, but go.mod still declared v1. Hopefully making both match makes https://pkg.go.dev/github.com/rfjakob/gocryptfs/v2 work. All the import paths have been fixed like this: find . -name \*.go | xargs sed -i s%github.com/rfjakob/gocryptfs/%github.com/rfjakob/gocryptfs/v2/%
Diffstat (limited to 'internal/speed')
-rw-r--r--internal/speed/speed.go4
-rw-r--r--internal/speed/speed_test.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/internal/speed/speed.go b/internal/speed/speed.go
index e097c55..4844845 100644
--- a/internal/speed/speed.go
+++ b/internal/speed/speed.go
@@ -14,8 +14,8 @@ import (
"golang.org/x/crypto/chacha20poly1305"
- "github.com/rfjakob/gocryptfs/internal/siv_aead"
- "github.com/rfjakob/gocryptfs/internal/stupidgcm"
+ "github.com/rfjakob/gocryptfs/v2/internal/siv_aead"
+ "github.com/rfjakob/gocryptfs/v2/internal/stupidgcm"
)
// 128-bit file ID + 64 bit block number = 192 bits = 24 bytes
diff --git a/internal/speed/speed_test.go b/internal/speed/speed_test.go
index 1e9d859..f3ec66c 100644
--- a/internal/speed/speed_test.go
+++ b/internal/speed/speed_test.go
@@ -9,7 +9,7 @@ BenchmarkStupidGCM-2 100000 22552 ns/op 181.62 MB/s
BenchmarkGoGCM-2 20000 81871 ns/op 50.03 MB/s
BenchmarkAESSIV-2 10000 104623 ns/op 39.15 MB/s
PASS
-ok github.com/rfjakob/gocryptfs/internal/speed 6.022s
+ok github.com/rfjakob/gocryptfs/v2/internal/speed 6.022s
*/
import (