ubifs: authentication: Authenticate LPT
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 7 Sep 2018 12:36:39 +0000 (14:36 +0200)
committerRichard Weinberger <richard@nod.at>
Tue, 23 Oct 2018 11:48:47 +0000 (13:48 +0200)
commita1dc58140f7e63e3b23050eb43b4e5581cb28c88
treeff4e138d447d33dfe7a7a0bdf2ac67fe3c62a141
parentda8ef65f9573952c717d86f8f501773daf29bd10
ubifs: authentication: Authenticate LPT

The LPT needs to be authenticated aswell. Since the LPT is only written
during commit it is enough to authenticate the whole LPT with a single
hash which is stored in the master node. Only the leaf nodes (pnodes)
are hashed which makes the implementation much simpler than it would be
to hash the complete LPT.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/lpt.c
fs/ubifs/lpt_commit.c
fs/ubifs/ubifs.h