replay.c (58f7553fa424fd0fd74e8b796d50c66014cebebe) | replay.c (b8f1da98a219ab8c371fae5c3efb4b90b8594f3b) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * This file is part of UBIFS. 4 * 5 * Copyright (C) 2006-2008 Nokia Corporation. 6 * 7 * Authors: Adrian Hunter 8 * Artem Bityutskiy (Битюцкий Артём) --- 560 unchanged lines hidden (view full) --- 569 return crypto_shash_final(hash_desc, hash); 570} 571 572/** 573 * authenticate_sleb - authenticate one scan LEB 574 * @c: UBIFS file-system description object 575 * @sleb: the scan LEB to authenticate 576 * @log_hash: | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * This file is part of UBIFS. 4 * 5 * Copyright (C) 2006-2008 Nokia Corporation. 6 * 7 * Authors: Adrian Hunter 8 * Artem Bityutskiy (Битюцкий Артём) --- 560 unchanged lines hidden (view full) --- 569 return crypto_shash_final(hash_desc, hash); 570} 571 572/** 573 * authenticate_sleb - authenticate one scan LEB 574 * @c: UBIFS file-system description object 575 * @sleb: the scan LEB to authenticate 576 * @log_hash: |
577 * @is_last: if true, this is is the last LEB | 577 * @is_last: if true, this is the last LEB |
578 * 579 * This function iterates over the buds of a single LEB authenticating all buds 580 * with the authentication nodes on this LEB. Authentication nodes are written 581 * after some buds and contain a HMAC covering the authentication node itself 582 * and the buds between the last authentication node and the current 583 * authentication node. It can happen that the last buds cannot be authenticated 584 * because a powercut happened when some nodes were written but not the 585 * corresponding authentication node. This function returns the number of nodes --- 663 unchanged lines hidden --- | 578 * 579 * This function iterates over the buds of a single LEB authenticating all buds 580 * with the authentication nodes on this LEB. Authentication nodes are written 581 * after some buds and contain a HMAC covering the authentication node itself 582 * and the buds between the last authentication node and the current 583 * authentication node. It can happen that the last buds cannot be authenticated 584 * because a powercut happened when some nodes were written but not the 585 * corresponding authentication node. This function returns the number of nodes --- 663 unchanged lines hidden --- |