summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/auth.c
AgeCommit message (Collapse)AuthorFilesLines
2018-10-23ubifs: Add helper functions for authentication supportSascha Hauer1-0/+502
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>