Lines Matching refs:hash
31 u8 *hash) in __ubifs_node_calc_hash() argument
39 err = crypto_shash_digest(shash, node, le32_to_cpu(ch->len), hash); in __ubifs_node_calc_hash()
53 static int ubifs_hash_calc_hmac(const struct ubifs_info *c, const u8 *hash, in ubifs_hash_calc_hmac() argument
61 err = crypto_shash_digest(shash, hash, c->hash_len, hmac); in ubifs_hash_calc_hmac()
82 u8 *hash; in ubifs_prepare_auth_node() local
85 hash = kmalloc(crypto_shash_descsize(c->hash_tfm), GFP_NOFS); in ubifs_prepare_auth_node()
86 if (!hash) in ubifs_prepare_auth_node()
95 err = crypto_shash_final(hash_desc, hash); in ubifs_prepare_auth_node()
100 err = ubifs_hash_calc_hmac(c, hash, auth->hmac); in ubifs_prepare_auth_node()
109 kfree(hash); in ubifs_prepare_auth_node()
161 void ubifs_bad_hash(const struct ubifs_info *c, const void *node, const u8 *hash, in ubifs_bad_hash() argument
173 ubifs_err(c, "hash expected: %*ph%s", len, hash, cont); in ubifs_bad_hash()