tests/example_filesystems: add deterministic-names and xchacha

This commit is contained in:
Jakob Unterwurzacher 2021-08-24 13:50:07 +02:00
parent 62ed081c5e
commit d70875aaa9
14 changed files with 90 additions and 0 deletions

View File

@ -382,3 +382,47 @@ func TestExampleFSv13reverse(t *testing.T) {
test_helpers.UnmountPanic(dirC) test_helpers.UnmountPanic(dirC)
test_helpers.UnmountPanic(dirB) test_helpers.UnmountPanic(dirB)
} }
// gocryptfs v2.2 introduced -deterministic-names
func TestExampleFSv22deterministicNames(t *testing.T) {
cDir := "v2.2-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, "-deterministic-names", "-masterkey",
"722733f5-b0f399f5-5465ad7a-f0bed125-"+
"e82de7b4-045e7608-a5e5c78e-04a1a61e",
opensslOpt)
checkExampleFSLongnames(t, pDir)
test_helpers.UnmountPanic(pDir)
}
// gocryptfs v2.2 introduced -xchacha
func TestExampleFSv22xchacha(t *testing.T) {
cDir := "v2.2-xchacha"
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", "-masterkey",
"44670e7e-32475bfc-bdfb8a8c-be17a767-"+
"0679cac0-be705d8c-af41c411-28c40f26",
opensslOpt)
checkExampleFSLongnames(t, pDir)
test_helpers.UnmountPanic(pDir)
}

View File

@ -0,0 +1 @@
-G4ErcfZuyo50LjLiEyJ3AAf4YP5UtwWWfvk9wZw4_SdQZoKYgoi9ZBh

View File

@ -0,0 +1 @@
KhXaRw-75Nq9gID4wqfU6CJ_kk-3RSSUiWxuhTFnlM6cjbBmRzcJlw

View File

@ -0,0 +1,19 @@
{
"Creator": "gocryptfs v2.1-27-gabaa129-dirty.xchacha",
"EncryptedKey": "RnoIHKZ0FW4hGgovIbo6ictZt6eISBCFAVQjIelO1In5GdWE3j6svtOirIg2xHpT9hwOSplVg8MgV0Y5Qw0TyQ==",
"ScryptObject": {
"Salt": "yzBcjuwLGUjscVFL01kZAAfCk+9LpSl1CqDhavxOt+Y=",
"N": 1024,
"R": 8,
"P": 1,
"KeyLen": 32
},
"Version": 2,
"FeatureFlags": [
"HKDF",
"GCMIV128",
"EMENames",
"LongNames",
"Raw64"
]
}

View File

@ -0,0 +1 @@
tMYO1CJjvdz5B37Kt5EKHCnq41xnN7iNWJPLLUOiQanOQN8UF6t-fOWcK-qF9PiYrhojc-7kQ41QqMTut9LpqwMa_Oc2S4C4CqVzK-ct6WHt-eZNSUWBt54EcxAbpzvm4Z_2_OFWhaPtkw2L7i4XozCOS33SMHn2rp4hX2ySOsStQX3C6AWiNWzTByk6VEeak6DDEYQPMiT0qmJkapYZ3dD7KNEh7ae1-yX1oX8DHhhKWf5OUgDU_UzDZ_fbD-_qMAV0mhFfoJ97oaskNrw1uXdX70ph3Qcb1psRynh5gQC7WaN6yX7bVJYUZKnulrp7spo04f7Neel5tENhQ3anpQ

View File

@ -0,0 +1 @@
G4op4SX2D3wVUDQedEsz6n3fm8ry2-EFQRx3HUp5kLyNKr2hA3N3iuDWhRxilY77

View File

@ -0,0 +1 @@
ymrBbzzB60kz8FNY78U7GmHlZmjUIS7iyoJsI3oQ1ISm10w6xDu6lL4eE2iYOBYJv7o

View File

@ -0,0 +1,20 @@
{
"Creator": "gocryptfs v2.1-27-gabaa129-dirty.xchacha",
"EncryptedKey": "6pVNGTIq5c4uXu90ZBjg2jKPvSqYc6gEfQ3/dEaMqKhd0CnaEYEm6+4oyrIfQkn0X7/hkW/HaCAqK0G0rcv1nw==",
"ScryptObject": {
"Salt": "AjIc6CkWvrd4/41pei15ulBKIcptIzvvJuCI+YB8pkA=",
"N": 1024,
"R": 8,
"P": 1,
"KeyLen": 32
},
"Version": 2,
"FeatureFlags": [
"HKDF",
"XChaCha20Poly1305",
"DirIV",
"EMENames",
"LongNames",
"Raw64"
]
}

View File

@ -0,0 +1 @@
U<>Η·ΙAφVt

View File

@ -0,0 +1 @@
nZEOq0Run8Aon2Q741xQE6caBtJUhfQQYSCcuEDPQW9vjFp13rOjJ_twr0h7XBmLIkAVta-adlHq3Yd-mOj5C31lO9oWywXC04igbBRXgySkVoRoM6I0NetO0fUTCqbZswEc0NNynmT10yY6BDL9WNr0EYysp9smImHYFj43tnLz0YnPD1bQvjsQyb4Gp8wBurqODbzKUln62x2U73QCUzKnhgbgIQpe6NbKSWbHts7y576BOBhqevLnpjM3o6iHnjLbd0lQnRncb_3nZKKgF7Ik0yOzWW9x1Dn9YiTmA9lg5NyoFidCDKfvAEuzlyw9_hV5XAbhT3j_oxv62G4q4Q