diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-09-07 14:36:34 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2018-10-23 13:48:39 +0200 |
commit | 823838a486888cf484e739ab37df14cb04dfddb5 (patch) | |
tree | f9ea86215e41e177e14e31c8a8281734a2811f15 /fs/ubifs/tnc_misc.c | |
parent | ubifs: Create functions to embed a HMAC in a node (diff) | |
download | linux-823838a486888cf484e739ab37df14cb04dfddb5.tar.xz linux-823838a486888cf484e739ab37df14cb04dfddb5.zip |
ubifs: Add hashes to the tree node cache
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>
Diffstat (limited to 'fs/ubifs/tnc_misc.c')
0 files changed, 0 insertions, 0 deletions