• Home
  • Raw
  • Download

Lines Matching refs:hash

49 	u8 hash[UBIFS_HASH_ARR_SZ];  member
254 r->len, r->hash, &r->nm); in apply_replay_entry()
279 r->len, r->hash); in apply_replay_entry()
383 const u8 *hash, union ubifs_key *key, in insert_node() argument
403 ubifs_copy_hash(c, hash, r->hash); in insert_node()
432 const u8 *hash, union ubifs_key *key, in insert_dent() argument
458 ubifs_copy_hash(c, hash, r->hash); in insert_dent()
562 static int authenticate_sleb_hash(struct ubifs_info *c, struct shash_desc *log_hash, u8 *hash) in authenticate_sleb_hash() argument
569 return crypto_shash_final(hash_desc, hash); in authenticate_sleb_hash()
572 static int authenticate_sleb_hmac(struct ubifs_info *c, u8 *hash, u8 *hmac) in authenticate_sleb_hmac() argument
578 return crypto_shash_digest(hmac_desc, hash, c->hash_len, hmac); in authenticate_sleb_hmac()
604 u8 *hash, *hmac; in authenticate_sleb() local
609 hash = kmalloc(crypto_shash_descsize(c->hash_tfm), GFP_NOFS); in authenticate_sleb()
611 if (!hash || !hmac) { in authenticate_sleb()
623 err = authenticate_sleb_hash(c, log_hash, hash); in authenticate_sleb()
627 err = authenticate_sleb_hmac(c, hash, hmac); in authenticate_sleb()
665 kfree(hash); in authenticate_sleb()
736 u8 hash[UBIFS_HASH_ARR_SZ]; in replay_bud() local
746 ubifs_node_calc_hash(c, snod->node, hash); in replay_bud()
759 err = insert_node(c, lnum, snod->offs, snod->len, hash, in replay_bud()
771 err = insert_node(c, lnum, snod->offs, snod->len, hash, in replay_bud()
785 err = insert_dent(c, lnum, snod->offs, snod->len, hash, in replay_bud()
811 err = insert_node(c, lnum, snod->offs, snod->len, hash, in replay_bud()