ubfis: authentication: Authenticate master node
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 7 Sep 2018 12:36:40 +0000 (14:36 +0200)
committerRichard Weinberger <richard@nod.at>
Tue, 23 Oct 2018 11:48:52 +0000 (13:48 +0200)
commit625700ccb5069ec81d15aae3b47282ecc59d63b5
treef0c25183cc69de8ab9377aeb143006ee67d2a5e9
parenta1dc58140f7e63e3b23050eb43b4e5581cb28c88
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>
fs/ubifs/master.c
fs/ubifs/recovery.c
fs/ubifs/ubifs.h