From b7538fc026dc25d0061e08bedc4b3aff97bb52d2 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 5 Mar 2017 23:06:40 +0100 Subject: [PATCH] tests: add v1.3 example filesystem This filesystem has both HKDF and Raw64 enabled. --- .../example_filesystems_test.go | 21 ++++++++++++++++++ .../v1.3/QcgCeorWnF7I_noMeo6K-Q | Bin 0 -> 60 bytes .../v1.3/WxU6ZeEPEFVBGNZko7LPGA | 1 + .../v1.3/ZrAj9K21B20StwGO2pjERg | 1 + tests/example_filesystems/v1.3/gocryptfs.conf | 20 +++++++++++++++++ .../example_filesystems/v1.3/gocryptfs.diriv | 1 + ...-3R657d236Aq17_QJq8BnSEkc5OUnSC01Z5rPDOICo | Bin 0 -> 60 bytes ...7d236Aq17_QJq8BnSEkc5OUnSC01Z5rPDOICo.name | 1 + 8 files changed, 45 insertions(+) create mode 100644 tests/example_filesystems/v1.3/QcgCeorWnF7I_noMeo6K-Q create mode 120000 tests/example_filesystems/v1.3/WxU6ZeEPEFVBGNZko7LPGA create mode 120000 tests/example_filesystems/v1.3/ZrAj9K21B20StwGO2pjERg create mode 100644 tests/example_filesystems/v1.3/gocryptfs.conf create mode 100644 tests/example_filesystems/v1.3/gocryptfs.diriv create mode 100644 tests/example_filesystems/v1.3/gocryptfs.longname.U-3R657d236Aq17_QJq8BnSEkc5OUnSC01Z5rPDOICo create mode 100644 tests/example_filesystems/v1.3/gocryptfs.longname.U-3R657d236Aq17_QJq8BnSEkc5OUnSC01Z5rPDOICo.name 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) + */ +} diff --git a/tests/example_filesystems/v1.3/QcgCeorWnF7I_noMeo6K-Q b/tests/example_filesystems/v1.3/QcgCeorWnF7I_noMeo6K-Q new file mode 100644 index 0000000000000000000000000000000000000000..666c1b91cc0114629af176008c10fc93fb87bf89 GIT binary patch literal 60 zcmV-C0K@+P0&EPRJJg0;%_G?v#`Mec6Kr#bFd}UtNB(#N`=Tu&LA`{vdZ-(8v-)a| S*-!#!Ldr;ATYx$Ahs|y@v>XQj literal 0 HcmV?d00001 diff --git a/tests/example_filesystems/v1.3/WxU6ZeEPEFVBGNZko7LPGA b/tests/example_filesystems/v1.3/WxU6ZeEPEFVBGNZko7LPGA new file mode 120000 index 0000000..f3ebc5e --- /dev/null +++ b/tests/example_filesystems/v1.3/WxU6ZeEPEFVBGNZko7LPGA @@ -0,0 +1 @@ +UwLqHBQ8wn2TtxECb7D44WoT_zsk4y_OUjBhrboYjVwc_st8tPX0jg \ No newline at end of file diff --git a/tests/example_filesystems/v1.3/ZrAj9K21B20StwGO2pjERg b/tests/example_filesystems/v1.3/ZrAj9K21B20StwGO2pjERg new file mode 120000 index 0000000..fb4ea39 --- /dev/null +++ b/tests/example_filesystems/v1.3/ZrAj9K21B20StwGO2pjERg @@ -0,0 +1 @@ +6MMwNmTI01yd9FmF60rt-AYDd9hr_-aZSICYKhxAhGaoYZUQiVraaRip \ No newline at end of file diff --git a/tests/example_filesystems/v1.3/gocryptfs.conf b/tests/example_filesystems/v1.3/gocryptfs.conf new file mode 100644 index 0000000..dcb446c --- /dev/null +++ b/tests/example_filesystems/v1.3/gocryptfs.conf @@ -0,0 +1,20 @@ +{ + "Creator": "gocryptfs v1.2.1-17-g5b54577-dirty", + "EncryptedKey": "dfneWTRGfme/SnCcuBmQ4WBbcU3V2HvZKpp6JMafFYEvrfs6+8QQM6iY1zAuctKvAp//IcfGFmNS2YYG+xkfEA==", + "ScryptObject": { + "Salt": "fHYTB0o+D9sTm2sIpNih1maN3SdGfM08al3WBhVNQ78=", + "N": 1024, + "R": 8, + "P": 1, + "KeyLen": 32 + }, + "Version": 2, + "FeatureFlags": [ + "GCMIV128", + "DirIV", + "EMENames", + "LongNames", + "Raw64", + "HKDF" + ] +} diff --git a/tests/example_filesystems/v1.3/gocryptfs.diriv b/tests/example_filesystems/v1.3/gocryptfs.diriv new file mode 100644 index 0000000..5ef76e0 --- /dev/null +++ b/tests/example_filesystems/v1.3/gocryptfs.diriv @@ -0,0 +1 @@ +;1c‰¡übú »÷…G"w \ No newline at end of file diff --git a/tests/example_filesystems/v1.3/gocryptfs.longname.U-3R657d236Aq17_QJq8BnSEkc5OUnSC01Z5rPDOICo b/tests/example_filesystems/v1.3/gocryptfs.longname.U-3R657d236Aq17_QJq8BnSEkc5OUnSC01Z5rPDOICo new file mode 100644 index 0000000000000000000000000000000000000000..8ed6884ba04d3a819f27e55d9072817c2cadbbcc GIT binary patch literal 60 zcmV-C0K@+P0vDyAD09c@nz1^Vu9-Pbdns_xzTxs|;XoKC|KzeunGY8kG!aXo?{w=o SUI@?|*}w3@>EMW>bG$)k0v