• Home
  • Raw
  • Download

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()
161 void ubifs_bad_hash(const struct ubifs_info *c, const void *node, const u8 *hash, in ubifs_bad_hash() argument
170 __ubifs_node_calc_hash(c, node, calc); in ubifs_bad_hash()
187 int __ubifs_node_check_hash(const struct ubifs_info *c, const void *node, in __ubifs_node_check_hash() argument
193 err = __ubifs_node_calc_hash(c, node, calc); in __ubifs_node_check_hash()
243 signode = snod->node; in ubifs_sb_verify_signature()
410 static int ubifs_node_calc_hmac(const struct ubifs_info *c, const void *node, in ubifs_node_calc_hmac() argument
427 err = crypto_shash_update(shash, node + 8, ofs_hmac - 8); in ubifs_node_calc_hmac()
433 err = crypto_shash_update(shash, node + ofs_hmac + hmac_len, in ubifs_node_calc_hmac()
454 int __ubifs_node_insert_hmac(const struct ubifs_info *c, void *node, int len, in __ubifs_node_insert_hmac() argument
457 return ubifs_node_calc_hmac(c, node, len, ofs_hmac, node + ofs_hmac); in __ubifs_node_insert_hmac()
470 int __ubifs_node_verify_hmac(const struct ubifs_info *c, const void *node, in __ubifs_node_verify_hmac() argument
481 err = ubifs_node_calc_hmac(c, node, len, ofs_hmac, hmac); in __ubifs_node_verify_hmac()
487 err = crypto_memneq(hmac, node + ofs_hmac, hmac_len); in __ubifs_node_verify_hmac()