From 988e0a047c01b2f59c4e059876bfb2122981d605 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Tue, 3 Nov 2015 21:06:52 +0100 Subject: tests: add config file and feature flags tests --- cryptfs/config_test/.gitignore | 1 + cryptfs/config_test/PlaintextNames.conf | 14 ++++++++++++++ cryptfs/config_test/StrangeFeature.conf | 14 ++++++++++++++ cryptfs/config_test/v1.conf | 11 +++++++++++ cryptfs/config_test/v2.conf | 11 +++++++++++ 5 files changed, 51 insertions(+) create mode 100644 cryptfs/config_test/.gitignore create mode 100644 cryptfs/config_test/PlaintextNames.conf create mode 100644 cryptfs/config_test/StrangeFeature.conf create mode 100644 cryptfs/config_test/v1.conf create mode 100644 cryptfs/config_test/v2.conf (limited to 'cryptfs/config_test') diff --git a/cryptfs/config_test/.gitignore b/cryptfs/config_test/.gitignore new file mode 100644 index 0000000..0720169 --- /dev/null +++ b/cryptfs/config_test/.gitignore @@ -0,0 +1 @@ +tmp.conf diff --git a/cryptfs/config_test/PlaintextNames.conf b/cryptfs/config_test/PlaintextNames.conf new file mode 100644 index 0000000..c1ff8cc --- /dev/null +++ b/cryptfs/config_test/PlaintextNames.conf @@ -0,0 +1,14 @@ +{ + "EncryptedKey": "rG4u0argMq02V5G9Fa+gAaaHtNrj3wn7OZjP44hWOzO4yBFtn+Qn3PW4V6LMuKmGLEhyktCyWOI3K8lj", + "ScryptObject": { + "Salt": "bRjq1V63u5ML3FoTWx/GBXUhUVpTunOX3DPxS+yPjg0=", + "N": 65536, + "R": 8, + "P": 1, + "KeyLen": 32 + }, + "Version": 2, + "FeatureFlags": [ + "PlaintextNames" + ] +} diff --git a/cryptfs/config_test/StrangeFeature.conf b/cryptfs/config_test/StrangeFeature.conf new file mode 100644 index 0000000..6a97781 --- /dev/null +++ b/cryptfs/config_test/StrangeFeature.conf @@ -0,0 +1,14 @@ +{ + "EncryptedKey": "rG4u0argMq02V5G9Fa+gAaaHtNrj3wn7OZjP44hWOzO4yBFtn+Qn3PW4V6LMuKmGLEhyktCyWOI3K8lj", + "ScryptObject": { + "Salt": "bRjq1V63u5ML3FoTWx/GBXUhUVpTunOX3DPxS+yPjg0=", + "N": 65536, + "R": 8, + "P": 1, + "KeyLen": 32 + }, + "Version": 2, + "FeatureFlags": [ + "StrangeFeatureFlag" + ] +} diff --git a/cryptfs/config_test/v1.conf b/cryptfs/config_test/v1.conf new file mode 100644 index 0000000..588a25a --- /dev/null +++ b/cryptfs/config_test/v1.conf @@ -0,0 +1,11 @@ +{ + "EncryptedKey": "t6YAvFQJvbv46c93bHQ5IZnvNz80DA9cohGoSPL/2M257LuIigow6jbr8b9HhnbDqHTCcz7aKkMDzneF", + "ScryptObject": { + "Salt": "yT4yQmmRmVNx2P0tJrUswk5SQzZaL6Z8kUteAoNJkXM=", + "N": 65536, + "R": 8, + "P": 1, + "KeyLen": 32 + }, + "Version": 1 +} diff --git a/cryptfs/config_test/v2.conf b/cryptfs/config_test/v2.conf new file mode 100644 index 0000000..8ef3dcf --- /dev/null +++ b/cryptfs/config_test/v2.conf @@ -0,0 +1,11 @@ +{ + "EncryptedKey": "RvxJnZWKTBSU21+7xbl08xlZyNyUCkpIqlK8Z51TUrRiBhqqNPxbdk1WXMvmOf/YzZ85Xbyz+DGM+SDf", + "ScryptObject": { + "Salt": "2OrFRfdW/5SanbMXM3TMINmfMO6oYU9awG+NZ77V8E8=", + "N": 65536, + "R": 8, + "P": 1, + "KeyLen": 32 + }, + "Version": 2 +} -- cgit v1.2.3