tests/example_filesystems: add v2.2-xchacha-deterministic-names
Combines both new flags.
This commit is contained in:
parent
d70875aaa9
commit
ab7308639b
@ -426,3 +426,25 @@ func TestExampleFSv22xchacha(t *testing.T) {
|
||||
checkExampleFSLongnames(t, pDir)
|
||||
test_helpers.UnmountPanic(pDir)
|
||||
}
|
||||
|
||||
// gocryptfs v2.2 introduced -xchacha and -deterministic-names
|
||||
func TestExampleFSv22xchachaDeterministicNames(t *testing.T) {
|
||||
cDir := "v2.2-xchacha-deterministic-names"
|
||||
pDir := test_helpers.TmpDir + "/" + cDir
|
||||
cDir = tmpFsPath + 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 + "_m"
|
||||
test_helpers.MountOrFatal(t, cDir, pDir, "-xchacha", "-deterministic-names", "-masterkey",
|
||||
"beba88a9-c6cd1dc0-b69c6f9d-9daea493-"+
|
||||
"9ae87082-4ffc40bf-b44e52db-3933af39",
|
||||
opensslOpt)
|
||||
checkExampleFSLongnames(t, pDir)
|
||||
test_helpers.UnmountPanic(pDir)
|
||||
}
|
||||
|
Binary file not shown.
@ -0,0 +1 @@
|
||||
KdGr5TgxeWRuT6LF294wqzUS6gcKJpimyu8R0Y6omKeoe2VrPEX1ZeYMQLFMki9_hZI
|
@ -0,0 +1,19 @@
|
||||
{
|
||||
"Creator": "gocryptfs v2.1-27-gabaa129-dirty.xchacha",
|
||||
"EncryptedKey": "XKST0+9lmTP7Vam3WpNMuF5RIp78ufCiMgV0W85Z2z46SJYKAqzTEK32wMLw+5y6S/N6tQWFlisR27gy/gBqcg==",
|
||||
"ScryptObject": {
|
||||
"Salt": "aD15Xe/HLWjBDvV9hwJGBsfYAHYt5DKlAzy8+flL9SE=",
|
||||
"N": 1024,
|
||||
"R": 8,
|
||||
"P": 1,
|
||||
"KeyLen": 32
|
||||
},
|
||||
"Version": 2,
|
||||
"FeatureFlags": [
|
||||
"HKDF",
|
||||
"XChaCha20Poly1305",
|
||||
"EMENames",
|
||||
"LongNames",
|
||||
"Raw64"
|
||||
]
|
||||
}
|
Binary file not shown.
@ -0,0 +1 @@
|
||||
lY_fhfc5U-Dy8S27eCl8IZf5MlLz8o1sMMCU6uRFRDYyN6jBvEVszHaEHrV-p2PIvrQq61mYUPcoQbR_lDAs9Pz9bGI7GD3Ws6MwyxeHLeZlwDbmLQd05Bgd5rX22ZJYyLWsTWj_sdbWxiqS7S50XZiUr5AuLSBVRijJZ5fKVlWZo59sIHCTZ2xJyEO3hg4X8oDTUb5O0CfYDWzqazE9kVtEfnv_2f24g3fmUpePnuvnx-jEpq58ZJA9opDUJxyyWrI8GmGMLcKQj0xRgLh4ESia_mCrYRhhfnPHL23PVFpH9eljAJ_BV51hSEoIReuM5WUU_httsLTJIq0iuMihDw
|
@ -0,0 +1 @@
|
||||
AduJ9ttohPi2MRdZZ8SrMTN_wyxWGvQeIJb_vUgBQdXMjJKYm9sdZ49X2jX_nunJ
|
Loading…
Reference in New Issue
Block a user