Lines Matching defs:hash
595 * @hash: hash of the LPT is returned here
600 int *lpt_lebs, int *big_lpt, u8 *hash)
835 err = ubifs_shash_final(c, desc, hash);
1646 * ubifs_lpt_calc_hash - Calculate hash of the LPT pnodes
1648 * @hash: the returned hash of the LPT pnodes
1650 * This function iterates over the LPT pnodes and creates a hash over them.
1653 int ubifs_lpt_calc_hash(struct ubifs_info *c, u8 *hash)
1732 err = ubifs_shash_final(c, desc, hash);
1741 * lpt_check_hash - check the hash of the LPT.
1744 * This function calculates a hash over all pnodes in the LPT and compares it with
1745 * the hash stored in the master node. Returns %0 on success and a negative error
1751 u8 hash[UBIFS_HASH_ARR_SZ];
1756 err = ubifs_lpt_calc_hash(c, hash);
1760 if (ubifs_check_hash(c, c->mst_node->hash_lpt, hash)) {