• Sascha Hauer's avatar
    ubifs: Authenticate replayed journal · da8ef65f
    Sascha Hauer authored
    Make sure that during replay all buds can be authenticated. To do
    this we calculate the hash chain until we find an authentication
    node and check the HMAC in that node against the current status
    of the hash chain.
    
    After a power cut it can happen that some nodes have been written, but
    not yet the authentication node for them. These nodes have to be
    discarded during replay.
    Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
    Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
    da8ef65f
replay.c 33.2 KB