From b7538fc026dc25d0061e08bedc4b3aff97bb52d2 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 5 Mar 2017 23:06:40 +0100 Subject: tests: add v1.3 example filesystem This filesystem has both HKDF and Raw64 enabled. --- .../example_filesystems/example_filesystems_test.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'tests/example_filesystems/example_filesystems_test.go') 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) + */ +} -- cgit v1.2.3