summaryrefslogtreecommitdiff
path: root/ubifs-utils/mkfs.ubifs/key.h
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2018-10-18 16:36:48 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2018-11-01 12:38:33 +0100
commit4c55918dd747df4b81e5fde56dba699858ac1ad0 (patch)
tree382c1358b19781eb80518a881114e3fa325eaeeb /ubifs-utils/mkfs.ubifs/key.h
parent35b6f36c9bee7492ed6303a6604f450963f7f8f5 (diff)
mkfs.ubifs: Implement filename encryption
Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'ubifs-utils/mkfs.ubifs/key.h')
-rw-r--r--ubifs-utils/mkfs.ubifs/key.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ubifs-utils/mkfs.ubifs/key.h b/ubifs-utils/mkfs.ubifs/key.h
index 0c7922b..c18e35e 100644
--- a/ubifs-utils/mkfs.ubifs/key.h
+++ b/ubifs-utils/mkfs.ubifs/key.h
@@ -110,9 +110,9 @@ static inline void ino_key_init(union ubifs_key *key, ino_t inum)
*/
static inline void dent_key_init(const struct ubifs_info *c,
union ubifs_key *key, ino_t inum,
- const struct qstr *nm)
+ const void *name, int name_len)
{
- uint32_t hash = c->key_hash(nm->name, nm->len);
+ uint32_t hash = c->key_hash(name, name_len);
assert(!(hash & ~UBIFS_S_KEY_HASH_MASK));
key->u32[0] = inum;