summaryrefslogtreecommitdiff
path: root/tests/example_filesystems/example_filesystems_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-10-08 21:24:26 +0200
committerJakob Unterwurzacher2016-10-08 21:45:01 +0200
commit3c2c3453ad7d31927a2faee02bea34388c1da830 (patch)
tree09390753d8dd9713aee557c70b7e56937846619a /tests/example_filesystems/example_filesystems_test.go
parente47577834bcb7bde3d06923f0feffc5ac5ca84dd (diff)
tests: add v1.1-aessiv example filesystem
Also move the example content into "content".
Diffstat (limited to 'tests/example_filesystems/example_filesystems_test.go')
-rw-r--r--tests/example_filesystems/example_filesystems_test.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/example_filesystems/example_filesystems_test.go b/tests/example_filesystems/example_filesystems_test.go
index d182f3a..34514c5 100644
--- a/tests/example_filesystems/example_filesystems_test.go
+++ b/tests/example_filesystems/example_filesystems_test.go
@@ -138,3 +138,22 @@ func TestExampleFSv09(t *testing.T) {
checkExampleFSLongnames(t, pDir)
test_helpers.UnmountPanic(pDir)
}
+
+// gocryptfs v1.1 introduced AES-SIV
+func TestExampleFSv11(t *testing.T) {
+ cDir := "v1.1-aessiv"
+ 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",
+ "be505f7d-54871394-2c0c2481-1bdcd0d8-9113b08a-0f7b4dfc-851c96da-55ef36b5",
+ "-aessiv", opensslOpt)
+ checkExampleFSLongnames(t, pDir)
+ test_helpers.UnmountPanic(pDir)
+}