state: backend_raw: add hmac support
This patch adds hmac support to the raw backend.

With this patch, modifications of the header or data of a state partition can
be detected, as the hmac woudln't match anymore. The hmac relies on a shared
secret, which is requested from the keystore, with keystore_get_secret() using
the name of the state partition as the "name" of the secret.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent bf3cb63 commit 34cda8c23115b3ae3aeeeba7618d5d5654536494
@Marc Kleine-Budde Marc Kleine-Budde authored on 25 Oct 2015
Sascha Hauer committed on 27 Nov 2015
Showing 3 changed files
View
Documentation/devicetree/bindings/barebox/barebox,state.rst
View
common/Kconfig
View
common/state.c