Lines Matching refs:log_hash
563 static int authenticate_sleb_hash(struct ubifs_info *c, struct shash_desc *log_hash, u8 *hash) in authenticate_sleb_hash() argument
569 ubifs_shash_copy_state(c, log_hash, hash_desc); in authenticate_sleb_hash()
599 struct shash_desc *log_hash, int is_last) in authenticate_sleb() argument
618 err = authenticate_sleb_hash(c, log_hash, hash); in authenticate_sleb()
633 err = crypto_shash_update(log_hash, snod->node, in authenticate_sleb()
696 n_nodes = authenticate_sleb(c, sleb, b->bud->log_hash, is_last); in replay_bud()
702 ubifs_shash_copy_state(c, b->bud->log_hash, in replay_bud()
703 c->jheads[b->bud->jhead].log_hash); in replay_bud()
917 bud->log_hash = ubifs_hash_get_desc(c); in add_replay_bud()
918 if (IS_ERR(bud->log_hash)) { in add_replay_bud()
919 err = PTR_ERR(bud->log_hash); in add_replay_bud()
923 ubifs_shash_copy_state(c, c->log_hash, bud->log_hash); in add_replay_bud()
1043 err = ubifs_shash_init(c, c->log_hash); in replay_log_leb()
1047 err = ubifs_shash_update(c, c->log_hash, node, UBIFS_CS_NODE_SZ); in replay_log_leb()
1097 err = ubifs_shash_update(c, c->log_hash, ref, in replay_log_leb()