aboutsummaryrefslogtreecommitdiff
path: root/ubifs-utils
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2018-10-18 16:36:49 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2018-11-01 12:38:41 +0100
commitc17525f6fa07f38b32a7d6a37d8c19bf64205e95 (patch)
treeece7e186640b3223bebd77e64260a77e8969908b /ubifs-utils
parent4c55918dd747df4b81e5fde56dba699858ac1ad0 (diff)
mkfs.ubifs: Add dummy setup for crypto
Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'ubifs-utils')
-rw-r--r--ubifs-utils/mkfs.ubifs/mkfs.ubifs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c b/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c
index 7deca96..a43b2a1 100644
--- a/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c
+++ b/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c
@@ -2720,6 +2720,12 @@ static int init(void)
sz = sizeof(struct inum_mapping *) * HASH_TABLE_SIZE;
hash_table = xzalloc(sz);
+ //TODO make this a parameter
+ root_fctx = init_fscrypt_context();
+ print_fscrypt_master_key_descriptor(root_fctx);
+ c->double_hash = 1;
+ c->encrypted = 1;
+
err = init_compression();
if (err)
return err;