Lines Matching refs:node
30 int __ubifs_node_calc_hash(const struct ubifs_info *c, const void *node, in __ubifs_node_calc_hash() argument
33 const struct ubifs_ch *ch = node; in __ubifs_node_calc_hash()
39 err = crypto_shash_digest(shash, node, le32_to_cpu(ch->len), hash); in __ubifs_node_calc_hash()
78 int ubifs_prepare_auth_node(struct ubifs_info *c, void *node, in ubifs_prepare_auth_node() argument
81 struct ubifs_auth_node *auth = node; in ubifs_prepare_auth_node()
152 void ubifs_bad_hash(const struct ubifs_info *c, const void *node, const u8 *hash, in ubifs_bad_hash() argument
161 __ubifs_node_calc_hash(c, node, calc); in ubifs_bad_hash()
178 int __ubifs_node_check_hash(const struct ubifs_info *c, const void *node, in __ubifs_node_check_hash() argument
184 err = __ubifs_node_calc_hash(c, node, calc); in __ubifs_node_check_hash()
234 signode = snod->node; in ubifs_sb_verify_signature()
403 static int ubifs_node_calc_hmac(const struct ubifs_info *c, const void *node, in ubifs_node_calc_hmac() argument
420 err = crypto_shash_update(shash, node + 8, ofs_hmac - 8); in ubifs_node_calc_hmac()
426 err = crypto_shash_update(shash, node + ofs_hmac + hmac_len, in ubifs_node_calc_hmac()
447 int __ubifs_node_insert_hmac(const struct ubifs_info *c, void *node, int len, in __ubifs_node_insert_hmac() argument
450 return ubifs_node_calc_hmac(c, node, len, ofs_hmac, node + ofs_hmac); in __ubifs_node_insert_hmac()
463 int __ubifs_node_verify_hmac(const struct ubifs_info *c, const void *node, in __ubifs_node_verify_hmac() argument
474 err = ubifs_node_calc_hmac(c, node, len, ofs_hmac, hmac); in __ubifs_node_verify_hmac()
480 err = crypto_memneq(hmac, node + ofs_hmac, hmac_len); in __ubifs_node_verify_hmac()