Skip to content

Commit

Permalink
ubifs: Add hashes to the tree node cache
Browse files Browse the repository at this point in the history
As part of the UBIFS authentication support every branch in the index
gets a hash covering the referenced node. To make that happen the tree
node cache needs hashes over the nodes. This patch adds a hash argument
to ubifs_tnc_add() and ubifs_tnc_add_nm(). The hashes are calculated
from the callers of these functions which actually prepare the nodes.
With this patch all the leaf nodes of the index tree get hashes, but
currently nothing is done with these hashes, this is left for a later
patch.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
  • Loading branch information
Sascha Hauer authored and Richard Weinberger committed Oct 23, 2018
1 parent a384b47 commit 823838a
Show file tree
Hide file tree
Showing 4 changed files with 135 additions and 30 deletions.
Loading

0 comments on commit 823838a

Please sign in to comment.