Home
last modified time | relevance | path

Searched refs:hmac (Results 1 – 8 of 8) sorted by relevance

/fs/ubifs/
Dauth.c48 u8 *hmac) in ubifs_hash_calc_hmac() argument
50 return crypto_shash_tfm_digest(c->hmac_tfm, hash, c->hash_len, hmac); in ubifs_hash_calc_hmac()
82 err = ubifs_hash_calc_hmac(c, hash, auth->hmac); in ubifs_prepare_auth_node()
390 int len, int ofs_hmac, void *hmac) in ubifs_node_calc_hmac() argument
418 return crypto_shash_final(shash, hmac); in ubifs_node_calc_hmac()
453 u8 *hmac; in __ubifs_node_verify_hmac() local
456 hmac = kmalloc(hmac_len, GFP_NOFS); in __ubifs_node_verify_hmac()
457 if (!hmac) in __ubifs_node_verify_hmac()
460 err = ubifs_node_calc_hmac(c, node, len, ofs_hmac, hmac); in __ubifs_node_verify_hmac()
462 kfree(hmac); in __ubifs_node_verify_hmac()
[all …]
Dmaster.c28 int hmac_offs = offsetof(struct ubifs_mst_node, hmac); in ubifs_compare_master_node()
135 if (ubifs_hmac_zero(c, c->mst_node->hmac)) { in scan_for_master()
143 offsetof(struct ubifs_mst_node, hmac)); in scan_for_master()
458 offsetof(struct ubifs_mst_node, hmac)); in ubifs_write_master()
470 offsetof(struct ubifs_mst_node, hmac)); in ubifs_write_master()
Dubifs-media.h678 __u8 hmac[UBIFS_MAX_HMAC_LEN]; member
754 __u8 hmac[UBIFS_MAX_HMAC_LEN]; member
781 __u8 hmac[]; member
Dsb.c320 offsetof(struct ubifs_sb_node, hmac)); in create_default_filesystem()
340 offsetof(struct ubifs_mst_node, hmac)); in create_default_filesystem()
345 0, offsetof(struct ubifs_mst_node, hmac)); in create_default_filesystem()
584 if (ubifs_hmac_zero(c, sup->hmac)) { in authenticate_sb_node()
596 hmac)); in authenticate_sb_node()
618 offsetof(struct ubifs_sb_node, hmac), 1); in ubifs_write_sb_node()
Dreplay.c599 u8 hmac[UBIFS_HMAC_ARR_SZ]; in authenticate_sleb() local
616 c->hash_len, hmac); in authenticate_sleb()
620 err = ubifs_check_hmac(c, auth->hmac, hmac); in authenticate_sleb()
Dubifs.h1692 bool ubifs_hmac_zero(struct ubifs_info *c, const u8 *hmac);
1694 int ubifs_hmac_wkm(struct ubifs_info *c, u8 *hmac);
Drecovery.c204 offsetof(struct ubifs_mst_node, hmac), 1); in write_rcvrd_mst_node()
Dsuper.c1434 if (ubifs_authenticated(c) && ubifs_hmac_zero(c, c->sup_node->hmac)) { in mount_ubifs()