ubifs: Add helper functions for authentication support
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 7 Sep 2018 12:36:32 +0000 (14:36 +0200)
committerRichard Weinberger <richard@nod.at>
Tue, 23 Oct 2018 11:48:33 +0000 (13:48 +0200)
commit49525e5eecca5e1b4a83ac217868e8d8b843539f
treea1cee88ca08fdff9ef51362365e4b3185d3d7f59
parentdead97266f1034d1cabd9a50641163d909559816
ubifs: Add helper functions for authentication support

This patch adds the various helper functions needed for authentication
support. We need functions to hash nodes, to embed HMACs into a node and
to compare hashes and HMACs. Most functions first check if this
filesystem is authenticated and bail out early if not, which makes the
functions safe to be called with disabled authentication.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/Kconfig
fs/ubifs/Makefile
fs/ubifs/auth.c [new file with mode: 0644]
fs/ubifs/ubifs.h