diff options
author | Jakob Unterwurzacher | 2017-02-25 18:51:17 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2017-02-25 18:51:17 +0100 |
commit | 57612a278bdd26de611b543be311748ca4dc42ca (patch) | |
tree | 12795fd8f552d9227d4c1b2043a7d68b06bd0e61 /internal/configfile/kdf_test.go | |
parent | a65965783a03645eb427e1958e5b9f9663b18951 (diff) |
configfile: rename "kdf.go" -> "scrypt.go"
This really only handles scrypt and no other key-derivation functions.
Renaming the files prevents confusion once we introduce HKDF.
renamed: internal/configfile/kdf.go -> internal/configfile/scrypt.go
renamed: internal/configfile/kdf_test.go -> internal/configfile/scrypt_test.go
Diffstat (limited to 'internal/configfile/kdf_test.go')
-rw-r--r-- | internal/configfile/kdf_test.go | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/internal/configfile/kdf_test.go b/internal/configfile/kdf_test.go deleted file mode 100644 index c1a656a..0000000 --- a/internal/configfile/kdf_test.go +++ /dev/null @@ -1,60 +0,0 @@ -package configfile - -import ( - "testing" -) - -/* -Results on a 2.7GHz Pentium G630: - -gocryptfs/cryptfs$ go test -bench=. -PASS -BenchmarkScrypt10-2 300 6021435 ns/op ... 6ms -BenchmarkScrypt11-2 100 11861460 ns/op -BenchmarkScrypt12-2 100 23420822 ns/op -BenchmarkScrypt13-2 30 47666518 ns/op -BenchmarkScrypt14-2 20 92561590 ns/op ... 92ms -BenchmarkScrypt15-2 10 183971593 ns/op -BenchmarkScrypt16-2 3 368506365 ns/op -BenchmarkScrypt17-2 2 755502608 ns/op ... 755ms -ok github.com/rfjakob/gocryptfs/cryptfs 18.772s -*/ - -func benchmarkScryptN(n int, b *testing.B) { - kdf := NewScryptKDF(n) - for i := 0; i < b.N; i++ { - kdf.DeriveKey("test") - } -} - -func BenchmarkScrypt10(b *testing.B) { - benchmarkScryptN(10, b) -} - -func BenchmarkScrypt11(b *testing.B) { - benchmarkScryptN(11, b) -} - -func BenchmarkScrypt12(b *testing.B) { - benchmarkScryptN(12, b) -} - -func BenchmarkScrypt13(b *testing.B) { - benchmarkScryptN(13, b) -} - -func BenchmarkScrypt14(b *testing.B) { - benchmarkScryptN(14, b) -} - -func BenchmarkScrypt15(b *testing.B) { - benchmarkScryptN(15, b) -} - -func BenchmarkScrypt16(b *testing.B) { - benchmarkScryptN(16, b) -} - -func BenchmarkScrypt17(b *testing.B) { - benchmarkScryptN(17, b) -} |