summaryrefslogtreecommitdiff
path: root/tests/example_filesystems/example_filesystems_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-03-05 23:06:40 +0100
committerJakob Unterwurzacher2017-03-05 23:07:52 +0100
commitb7538fc026dc25d0061e08bedc4b3aff97bb52d2 (patch)
tree27d368dbfaa63d624896eb831f8be726e0b058ab /tests/example_filesystems/example_filesystems_test.go
parenta8fd8a251662c538946edfe0fcec8ec89727b3be (diff)
tests: add v1.3 example filesystem
This filesystem has both HKDF and Raw64 enabled.
Diffstat (limited to 'tests/example_filesystems/example_filesystems_test.go')
-rw-r--r--tests/example_filesystems/example_filesystems_test.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/example_filesystems/example_filesystems_test.go b/tests/example_filesystems/example_filesystems_test.go
index a43d2a9..4b8b2b8 100644
--- a/tests/example_filesystems/example_filesystems_test.go
+++ b/tests/example_filesystems/example_filesystems_test.go
@@ -226,3 +226,24 @@ func TestExampleFSv11reversePlaintextnames(t *testing.T) {
test_helpers.UnmountPanic(dirC)
test_helpers.UnmountPanic(dirB)
}
+
+// gocryptfs v1.3 introduced HKDF
+func TestExampleFSv13(t *testing.T) {
+ cDir := "v1.3"
+ pDir := test_helpers.TmpDir + "/" + cDir
+ err := os.Mkdir(pDir, 0777)
+ if err != nil {
+ t.Fatal(err)
+ }
+ test_helpers.MountOrFatal(t, cDir, pDir, "-extpass", "echo test", opensslOpt)
+ checkExampleFSLongnames(t, pDir)
+ test_helpers.UnmountPanic(pDir)
+ /*
+ pDir = pDir + ".2"
+ test_helpers.MountOrFatal(t, cDir, pDir, "-masterkey",
+ "eaf371c3-f9a55336-8819f22b-7bccd7c2-a738cf61-7261c658-14c28a03-9428992b",
+ "-aessiv", opensslOpt)
+ checkExampleFSLongnames(t, pDir)
+ test_helpers.UnmountPanic(pDir)
+ */
+}