summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/journal.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-09-07 14:36:33 +0200
committerRichard Weinberger <richard@nod.at>2018-10-23 13:48:37 +0200
commita384b47e4954a0f834749fcbe1c096c40ff5eb35 (patch)
tree512ccd678b77a62ad99a674e309204437fa5bf04 /fs/ubifs/journal.c
parent49525e5eecca5e1b4a83ac217868e8d8b843539f (diff)
downloadlinux-0-day-a384b47e4954a0f834749fcbe1c096c40ff5eb35.tar.gz
linux-0-day-a384b47e4954a0f834749fcbe1c096c40ff5eb35.tar.xz
ubifs: Create functions to embed a HMAC in a node
With authentication support some nodes (master node, super block node) get a HMAC embedded into them. This patch adds functions to prepare and write such a node. The difficulty is that besides the HMAC the nodes also have a CRC which must stay valid. This means we first have to initialize all fields in the node, then calculate the HMAC (not covering the CRC) and finally calculate the CRC. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/ubifs/journal.c')
0 files changed, 0 insertions, 0 deletions