diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-09-07 14:36:40 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2018-10-23 13:48:52 +0200 |
commit | 625700ccb5069ec81d15aae3b47282ecc59d63b5 (patch) | |
tree | f0c25183cc69de8ab9377aeb143006ee67d2a5e9 /fs/ubifs/ubifs.h | |
parent | a1dc58140f7e63e3b23050eb43b4e5581cb28c88 (diff) | |
download | linux-625700ccb5069ec81d15aae3b47282ecc59d63b5.tar.gz linux-625700ccb5069ec81d15aae3b47282ecc59d63b5.tar.bz2 linux-625700ccb5069ec81d15aae3b47282ecc59d63b5.zip |
ubfis: authentication: Authenticate master node
The master node contains hashes over the root index node and the LPT.
This patch adds a HMAC to authenticate the master node itself.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/ubifs/ubifs.h')
-rw-r--r-- | fs/ubifs/ubifs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h index 7e519a4885a8..c26d3c600e4d 100644 --- a/fs/ubifs/ubifs.h +++ b/fs/ubifs/ubifs.h @@ -1900,6 +1900,7 @@ int ubifs_gc_should_commit(struct ubifs_info *c); void ubifs_wait_for_commit(struct ubifs_info *c); /* master.c */ +int ubifs_compare_master_node(struct ubifs_info *c, void *m1, void *m2); int ubifs_read_master(struct ubifs_info *c); int ubifs_write_master(struct ubifs_info *c); |